After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353437 - try harder to break grabs
try harder to break grabs
Status: RESOLVED DUPLICATE of bug 689106
Product: gnome-screensaver
Classification: Deprecated
Component: daemon
CVS HEAD
Other Linux
: Normal normal
: ---
Assigned To: gnome-screensaver maintainers
gnome-screensaver maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-29 17:19 UTC by William Jon McCann
Modified: 2014-08-20 19:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2006-08-29 17:19:46 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?
Comment 1 William Jon McCann 2006-08-29 18:24:59 UTC
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.
Comment 2 Michal J. Gajda 2006-12-12 09:38:28 UTC
Maybe bring visible notification window that would say that screensaver couldn't break the grab?
Comment 3 Matthias Clasen 2011-09-16 15:37:24 UTC
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.
Comment 4 Ilya Portnov 2012-11-06 07:47:43 UTC
Hi all.
Are there any news on this bug? I'm interested in solution too... More than year since last comment :/
Comment 5 Bastien Nocera 2014-08-20 19:33:48 UTC
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 ***