Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce WindowBuilderExt::with_app_id for wayland #700

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

elinorbgr
Copy link
Contributor

This was discussed some time ago, and allows applications to specify an application id that the wayland compositor will use to find the matching .desktop file.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created an example program if it would help users understand this functionality

src/os/unix.rs Outdated
@@ -225,6 +225,13 @@ pub trait WindowBuilderExt {
fn with_resize_increments(self, increments: LogicalSize) -> WindowBuilder;
/// Build window with base size hint. Only implemented on X11.
fn with_base_size(self, base_size: LogicalSize) -> WindowBuilder;

/// Build window with a given app-id. It should match the `.desktop`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Build window with a given app-id. It should match the `.desktop`
/// Build window with a given `app-id`. It should match the `.desktop`

Should app-id be in backticks?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it should probably just be "application ID"

src/os/unix.rs Outdated
/// Build window with a given app-id. It should match the `.desktop`
/// file distributed with your program. Only relevant on Wayland.
///
/// For details about application id conventions, see the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// For details about application id conventions, see the
/// For details about application ID conventions, see the

To be more consistent with the stylization you used in the CHANGELOG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants