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

Cannot move/resize windows if NumLock or CapsLock is enabled #208

Closed
avahe-kellenberger opened this issue Nov 2, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@avahe-kellenberger
Copy link
Owner

avahe-kellenberger commented Nov 2, 2022

Read https://tronche.com/gui/x/xlib/events/keyboard-pointer/keyboard-pointer.html

The state member is set to indicate the logical state of the pointer buttons and modifier keys just prior to the event,
which is the bitwise inclusive OR of one or more of the button or modifier key masks:
Button1Mask, Button2Mask, Button3Mask, Button4Mask, Button5Mask, ShiftMask,
LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, and Mod5Mask.

If LockMask is or'd into the XKeyEvent state, moving or resizing won't work.
We need to filter them out of the event's state in order to ignore it (see dwm's implementation)

@avahe-kellenberger avahe-kellenberger added the bug Something isn't working label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant