mask - Xlib - Ignore Modifier Keys in XGrab* -


Holla,

I'm currently hacking some changes in TinyWM - I want to implement There is a click-to-focus policy.

I thought that I need to run XGrabButton on the child because it is a MapNotify event, but I do not know the use of modifier mask To ignore all the modifier masks (i.e., I would like to focus no matter that modifier keys are active).

I hit a brick wall, because even AnyModifier does not work when I do not have any modifier keys (and still, it gets worse ).

The relevant part of the code is here:

  zero eMapNotify (display * dpy, XEvent * ev) {// Do not ignore the window about us Do not ignore the window ( ! Ev.xmap.override_redirect) XSetWindowBorderWidth (dpi, ev.xmap.window, 3); // allows us to hook into a click of this window so that we can focus on excavation (DP, 1, WHAT_MASK_DO_I_PUT_HERE, ev.xmap.window, True, ButtonPressMask, GrabModeAsync, GrabModeAsync, None, None); }   

Any ideas?


Edit:

I've found that in fact the event handler does <, but click

UPDATE

I click, but click No We have implemented recently with the following code keeping in mind the functionality, which tracks the indicator and where It also happens that it focuses. On my machine, this is almost not as expensive as it may look like: window dump, baby; Int rx, ry, cx, cy; Unsigned entry mask; Get the XQueryPointer (DP, Route, and Dump, and Children, & amp; Rx, & amp; Ry, & amp; cx; & amp; Cy, and Mask) of the Indicator; // The current window of the pointer focuses on XSetInputFocus (DP, Dump, Rivettoon, Current Time);

The mask will not be 0 for any modifier.

Comments