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 550135 - gdk_x11_display_ungrab should simply return if grab_count == 0
gdk_x11_display_ungrab should simply return if grab_count == 0
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Backend: X11
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-08-31 23:23 UTC by Cosimo Cecchi
Modified: 2009-10-12 13:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Cosimo Cecchi 2008-08-31 23:23:00 UTC
Sometimes (e.g. in bug-buddy) you want to use gdk_x11_ungrab_server () to release any grab that a crashed application might have had while crashing.
Right now if there are no grabs, it throws out a critical message.
This isn't convenient and it would be harmless if gdk_x11_display_ungrab () simply returned when grab_count == 0.
Comment 1 Cosimo Cecchi 2008-09-01 13:17:16 UTC
Hmm, maybe this wouldn't be that useful as it seems that the grab count is internal to Gdk and isn't synced with the X grabs coming from outside Gdk (correct me if I'm wrong).
Comment 2 Cosimo Cecchi 2009-10-12 13:44:13 UTC
Thinking again about it, this does not make sense.