GNOME Bugzilla – Bug 85916
tab popup remains there on tapping 'Alt Tab' on busy system
Last modified: 2004-12-22 21:47:04 UTC
If metacity is not fast enough, e.g. because of momentarily busy (as in thrashing) system, just tapping the keys to cycle windows (pressing them and releasing them fast enough) results in the tab popup remaining there. To reproduce easily, run metacity on gdb, and put a breakpoint at the beginning of the handle_tab_forward() function in keybindings.c. Pressing Alt Tab to cycle the windows triggers the breakpoint. Continuing metacity on gdb results in the reported behaviour.
Problem is that we only get the Alt key release if we establish a grab prior to the key being released. Otherwise we miss the Alt release. I'm not sure how to fix this yet. We can't really passive grab plain "Alt" keypresses, I don't think.
Owen do you have any ideas on this race? Should I passive grab the key bound to the Mod1 modifier?
Well, cheesy solution is to check if the Alt key is still down after you make your grab, if not, abort immediately.
Batch adding GNOME2 keyword to Metacity bugs. Sorry for the spam.
This also appears to happen when switching workspaces via C-A-arrow_key
Here's a possible fix
Created attachment 13708 [details] [review] fix
In CVS now