GNOME Bugzilla – Bug 353437
try harder to break grabs
Last modified: 2014-08-20 19:33:48 UTC
We might be able to try harder to break keyboard grabs. Currently we only try to nuke the focus: XGetInputFocus (GDK_DISPLAY (), &focus, &rev); XSetInputFocus (GDK_DISPLAY (), None, RevertToNone, CurrentTime); Perhaps we can synthesize the keys to break grabs using AllowDeactivateGrabs?
On the other hand, this will break just about every game on the market. They generally grab the keyboard and this acts like a de-facto activation inhibitor (whether or not this is intentional). One specific case I'd like to solve somehow is the infamous open GtkMenu blocks screensaver problem.
Maybe bring visible notification window that would say that screensaver couldn't break the grab?
The plan for this is to use a 'please drop your grabs' ClientMessage to the root window, and support this in GTK+. When that fails, we can still do the forceful kill-grabs things.
Hi all. Are there any news on this bug? I'm interested in solution too... More than year since last comment :/
gnome-screensaver is obsolete, and this particular bug has been worked around in gnome-shell itself. A proper fix will be in Wayland though. Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 689106 ***