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

Add missing event mask fields to WindowAttributes #77

Merged
merged 1 commit into from
May 24, 2021

Conversation

liskin
Copy link
Member

@liskin liskin commented May 14, 2021

This is a prerequisite to fix a recent xmonad-contrib regression
caused by X.H.ManageDocks overriding the event mask (selectInput) of
a decoration window. The proposed fix is to first obtain the current
event mask, set the required bits in it only then reset the mask.

Related: xmonad/xmonad-contrib#517
Related: xmonad/xmonad-contrib#545

liskin added a commit to liskin/xmonad-contrib that referenced this pull request May 14, 2021
Decoration windows are created using XMonad.Util.XUtils.createNewWindow
which happens to set _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_DESKTOP,
and ManageDocks considers such windows candidates for struts and
therefore requests property events, thus overriding the original event
mask requested by decorations.

The fix is to first obtain the current event mask, set the required bits
in it only then reset the mask.

Fixes: xmonad#517
Fixes: ec14617 ("X.H.ManageDocks: React to strut updates of override_redirect docks")
Related: xmonad/X11#77
@liskin liskin force-pushed the pr/window-attributes-event-mask branch from 33e5606 to 3b12e30 Compare May 14, 2021 18:19
liskin added a commit to liskin/xmonad-contrib that referenced this pull request May 14, 2021
Decoration windows are created using XMonad.Util.XUtils.createNewWindow
which happens to set _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_DESKTOP,
and ManageDocks considers such windows candidates for struts and
therefore requests property events, thus overriding the original event
mask requested by decorations.

The fix is to first obtain the current event mask, set the required bits
in it only then reset the mask.

Fixes: xmonad#517
Fixes: ec14617 ("X.H.ManageDocks: React to strut updates of override_redirect docks")
Related: xmonad/X11#77
@liskin liskin added this to the v0.10 milestone May 17, 2021
This is a prerequisite to fix a recent xmonad-contrib regression
caused by X.H.ManageDocks overriding the event mask (selectInput) of
a decoration window. The proposed fix is to first obtain the current
event mask, set the required bits in it only then reset the mask.

Related: xmonad/xmonad-contrib#517
Related: xmonad/xmonad-contrib#545
@liskin liskin force-pushed the pr/window-attributes-event-mask branch from 3b12e30 to 5319673 Compare May 24, 2021 23:21
@liskin liskin merged commit 5319673 into xmonad:master May 24, 2021
@liskin liskin deleted the pr/window-attributes-event-mask branch May 24, 2021 23:21
liskin added a commit to liskin/xmonad-contrib that referenced this pull request Jun 1, 2021
Decoration windows are created using XMonad.Util.XUtils.createNewWindow
which happens to set _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_DESKTOP,
and ManageDocks considers such windows candidates for struts and
therefore requests property events, thus overriding the original event
mask requested by decorations.

The fix is to first obtain the current event mask, set the required bits
in it only then reset the mask.

Fixes: xmonad#517
Fixes: ec14617 ("X.H.ManageDocks: React to strut updates of override_redirect docks")
Related: xmonad/X11#77
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.

1 participant