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)
Read https://tronche.com/gui/x/xlib/events/keyboard-pointer/keyboard-pointer.html
If
LockMask
is or'd into the XKeyEventstate
, moving or resizing won't work. We need to filter them out of the event'sstate
in order to ignore it (see dwm's implementation)