Skip to content

Set WM_CLASS and WM_NAME before mapping window - #168

Merged
tomaka merged 1 commit into
rust-windowing:masterfrom
jonhoo:set_class_before_map
May 5, 2017
Merged

tomaka merged 1 commit into
rust-windowing:masterfrom
jonhoo:set_class_before_map

Conversation

@jonhoo

@jonhoo jonhoo commented May 4, 2017

Copy link
Copy Markdown
Contributor

ICCCM 4.1.2.5 states that:

This property must be present when the window leaves the Withdrawn state and may be changed only while the window is in the Withdrawn state.

Previously, we would first map the window, and then set these properties, causing sadness for window managers (#167, rust-windowing/glutin#879). This patch changes that by setting the class and name attributes immediately after the window is created, and before it is mapped.

Fixes #167.

ICCCM 4.1.2.5 (https://tronche.com/gui/x/icccm/sec-4.html#WM_CLASS)
states that:

> This property must be present when the window leaves the Withdrawn
> state and may be changed only while the window is in the Withdrawn
> state.

Previously, we would first map the window, and then set these
properties, causing sadness for window managers (#167,
rust-windowing/glutin#879). This patch changes that by setting the class and
name attributes immediately after the window is created, and before it
is mapped.

Fixes #167.
@tomaka

tomaka commented May 5, 2017

Copy link
Copy Markdown
Contributor

Thanks!

@tomaka
tomaka merged commit 689d052 into rust-windowing:master May 5, 2017
tmfink pushed a commit to tmfink/winit that referenced this pull request Jan 5, 2022
madsmtm pushed a commit to madsmtm/winit that referenced this pull request Jun 11, 2022
* Update to gtk v0.14

* fix: rust-windowing#167 - Change dependency from libappindicator to libayatana-appindicator (rust-windowing#168)

* feat(tray): Changed to libayatana-appindicator-rs.

* Update CI script

Co-authored-by: Ngo Iok Ui <[email protected]>

* Update libappindicator crate

* Update ci script

* Add change file

Co-authored-by: Lewin Probst, M.Sc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants