Bug 34358 - XUngrabKey() using AnyKey + AnyModifier does not ungrab all keys
Summary: XUngrabKey() using AnyKey + AnyModifier does not ungrab all keys
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 13:22 UTC by Simon Schampijer
Modified: 2011-03-02 10:29 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Simon Schampijer 2011-02-16 13:22:10 UTC
I am running into the issue where XUngrabKey(AnyKey, AnyModifier) seem not to ungrab the keys, but with with many calls to XGrabKey it seem to work.

Here is what I am trying to do: I am trying to disable all the keybindings in metactity: "metacity-message disable-keybindings"

http://people.gnome.org/~tthurman/docs/metacity/keybindings_8c-source.html#l01144

Metacity tries to ungrab all keys with just one call to XUngrabKey(), using AnyKey + AnyModifier, the code in DeletePassiveGrabFromList() seems to try to implement the desired behavior, the manpage of XUngrabKey() also says it works this way, so there seems to be a bug somewhere that prevents AnyKey/AnyModifier from matching individual key grabs from the list.

This is on Fedora 14 where we have xserver 1.9.4.
Comment 1 Daniel Drake 2011-03-02 07:58:46 UTC
I diagnosed the same environment (XO-1.5) and found that metacity is not executing any X commands in response to that message, it just sets a local variable.

After extending metacity to actually call XUngrabKey(Any, Any) it is working fine - the key grabs get dropped.

This can probably be closed.
Comment 2 Julien Cristau 2011-03-02 10:29:22 UTC
Closing then.  Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.