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

xwm: Only set _NET_WM_STATE if it has changed #936

Merged
merged 2 commits into from
Mar 15, 2023

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Mar 14, 2023

EWMH says a client MUST use a client message to change this, so this should be managed by the compositor and it is not necessary to read the value from X. Assuming the X11Surface exists for the lifetime of the X window, and the compositor only sets this via change_net_state.

Fixes pop-os/cosmic-comp#90. This should also generally perform better since it removes a get_property call which has to wait on the X server, and it doesn't allocate a HashSet. For what difference that makes.

This also fixes what appears to be a mistake in update_net_window_type.

EWMH says a client MUST use a client message to change this, so this
should be managed by the compositor and it is not necessary to read the
value from X. Assuming the `X11Surface` exists for the lifetime of the X
window, and the compositor only sets this via `change_net_state`.

Fixes pop-os/cosmic-comp#90. This should also
generally perform better since it removes a `get_property` call which
has to wait on the X server, and it doesn't allocate a `HashSet`. For
what difference that makes.
@Drakulix Drakulix merged commit 6a762a9 into Smithay:master Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

X clients recieving flood of PropertyNotify _NET_WM_STATE events
2 participants