GNOME Bugzilla – Bug 550135
gdk_x11_display_ungrab should simply return if grab_count == 0
Last modified: 2009-10-12 13:44:13 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.
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).
Thinking again about it, this does not make sense.