GNOME Bugzilla – Bug 89179
no way of ignoring Notify(Un)Grab FocusChange events
Last modified: 2009-08-15 18:40:50 UTC
gdk should either ignore FocusChange events with xfocus.mode == NotifyGrab || xfocus.mode == NotifyUngrab or allow applications to differentiate between FocusChange events generated by grabs and normal focus change events. In gdk_event_translate we have /* gdk_keyboard_grab() causes following events. These events confuse * the XIM focus, so ignore them. */ if (xevent->xfocus.mode == NotifyGrab || xevent->xfocus.mode == NotifyUngrab) break; but its disabled. I'll be assigning a panel bug as a dependancy on this for details of why this would be useful
Are you sure bug 89180 isn't really a metacity bug? GTK+ should only ever think a window has focus when it is actually getting keyboard events.
I guess I need more information to really understand this request ... I don't think it's generally right for apps to do stuff on focus out that doesn't get undone on focus in, otherwise. Please reopen if you add more comments.
Mark, has all information Owen asked for been given?
Okay, the details behind all this are totally lost on me know and the behaviour of Metacity seems to have changed such that I can't reproduce the original problem so closing the bug ...