GNOME Bugzilla – Bug 643682
Disable keybindings message should ungrab keys
Last modified: 2011-05-21 16:52:33 UTC
Created attachment 182261 [details] [review] fix The "metacity-message disable-keybindings" action is currently only 'soft' in that it just causes Metacity to ignore keypresses; the keys themselves are left bound. Sugar would like to use this message to actually disable the bindings *and* release the grabs so that it can implement its own Alt-Tab handler This patch implements this. Based on earlier work by Bernie Innocenti. (If this patch passes review, I have commit access)
Did you ever look at: https://bugzilla.gnome.org/show_bug.cgi?id=621686 I did that patch specifically for you guys; it seems a lot saner to me to have a metacity plugin which you can load once and disable the keybindings at startup before they're even grabbed, rather than having them all ungrabbed, then metacity get an X message and ungrab them.
Review of attachment 182261 [details] [review]: I didn't mean to sidetrack things totally with the plugin API discussion. Anyways, I don't see anything obviously wrong with this patch, with the caveat that keys in window managers is a fantastic nest of complexity. Does anything besides Sugar use this patch? If not it seems very low risk to me, given it's an off-by-default bit in an effectively deprecated component of GNOME. Do you have a GNOME account? If so feel free to commit.
Thanks for the review! Pushed.