i wonder, if this is a desired behaviour (although i admit it is documented): i have a passive
-grab on H-i (H a modifier). Now when i set the auto-repeat delay to 2 seconds (just to be sure to do the right sequence) and do: Hyper, i, Hyper-up, e, i-up , e-up the grabbing client receivs the 'e' event. I wonder if that is useful. I think it could sometime happen by error.
therefore: i want to grab the Hyper_L
I want to be able to stop key-event processing till the right window is focused. Also i don't want to write my password to another window, if the password-requesting window suddenly disapears.
Quoting from Xgrab.html:
The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated automatically when the logical state of the keyboard has the specified key released (independent of the logical state of the modifier keys).
i want two commands:
i.e. we want to wait for some event. This implies don't ungrab:
(set-dont-allow-events 1)
xallowevents_handling
Then i need to catch the right events:
-focus
-error
-> ungrab. ( no need to allow events)
grab-counter ... needs to be a defvar (in misc.jl)