API for binding and unbinding a key combo?

Tuomo Valkonen tuomov at iki.fi
Thu Mar 27 05:47:58 PDT 2008


On 2008-03-27 12:47 +0100, Stanislav Brabec wrote:
> Application does not need to call XGrabKey() to get events.

I was referring to the brain damage known as XEmbed, in case you
didn't notice. When XGrabKey would do the job (you can even grab
AnyKey, if you want to process everything in the embedding 
application), it depends on a hack of the above kind. (And this
grab would need no conflict management, since the embedding 
application would make the grab on its own (container) window.)

> Not only hotkeys, but also Modifier + Mouse Click/DnD need conflict
> management.

XGrab* failing on apps (when the WM has already reserved the key) and them
complaining is enough conflict management at that level. Perhaps a common
user-configurable wm/app modifier setting (with non-background apps defaulting
to not using Alt!) could be the higher level of it. Possibly an application
could (in conflict situation) also launch a configuration utility, provided
all configuration could be found through a single interface (or the 
complaining could be done at initial configuration time). In any case, 
more complex grabbing protocols are a wasted effort of over-complexity
(a popular trend!), when the real issue is in _configuration_.

-- 
Tuomo


More information about the xdg mailing list