diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e40dfe27..264332f2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Unreleased` header. # Unreleased - On macOS, fix incorrect IME cursor rect origin. +- On X11, fix swapped instance and general class names. - On Windows, fixed a race condition when sending an event through the loop proxy. # 0.29.10 diff --git a/src/platform/x11.rs b/src/platform/x11.rs index 5cbd2fe32..472128234 100644 --- a/src/platform/x11.rs +++ b/src/platform/x11.rs @@ -96,7 +96,7 @@ pub trait WindowBuilderExtX11 { /// Build window with the given `general` and `instance` names. /// /// The `general` sets general class of `WM_CLASS(STRING)`, while `instance` set the - /// instance part of it. The resulted property looks like `WM_CLASS(STRING) = "general", "instance"`. + /// instance part of it. The resulted property looks like `WM_CLASS(STRING) = "instance", "general"`. /// /// For details about application ID conventions, see the /// [Desktop Entry Spec](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#desktop-file-id) diff --git a/src/platform_impl/linux/x11/window.rs b/src/platform_impl/linux/x11/window.rs index b5e256bf5..5bd79a6bf 100644 --- a/src/platform_impl/linux/x11/window.rs +++ b/src/platform_impl/linux/x11/window.rs @@ -396,7 +396,7 @@ impl UnownedWindow { // WM_CLASS must be set *before* mapping the window, as per ICCCM! { - let (class, instance) = if let Some(name) = pl_attribs.name { + let (instance, class) = if let Some(name) = pl_attribs.name { (name.instance, name.general) } else { let class = env::args_os()