mirror of https://github.com/GNOME/gimp.git
Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/screenshot.c: trap errors when running XGrabKey, to prevent bail-out on BadAccess error as reported by Jean-Luc Coulon on developers list; solution suggested by Simon Budig.
This commit is contained in:
parent
8114272551
commit
c635b2be13
|
@ -1,3 +1,10 @@
|
|||
2005-06-01 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||
|
||||
* plug-ins/common/screenshot.c: trap errors when running
|
||||
XGrabKey, to prevent bail-out on BadAccess error as
|
||||
reported by Jean-Luc Coulon on developers list; solution
|
||||
suggested by Simon Budig.
|
||||
|
||||
2005-06-02 Raphaël Quinet <raphael@gimp.org>
|
||||
|
||||
* data/images/gimp-splash.png: New splash. A twist on the
|
||||
|
|
|
@ -425,8 +425,11 @@ select_window_x11 (GdkScreen *screen)
|
|||
|
||||
if (gdk_keymap_get_entries_for_keyval (NULL, GDK_Escape, &keys, &num_keys))
|
||||
{
|
||||
gdk_error_trap_push ();
|
||||
XGrabKey (x_dpy, keys[0].keycode, AnyModifier, x_root, False,
|
||||
GrabModeAsync, GrabModeAsync);
|
||||
gdk_flush ();
|
||||
gdk_error_trap_pop ();
|
||||
}
|
||||
|
||||
while (! cancel && ((x_win == None) || (buttons != 0)))
|
||||
|
|
Loading…
Reference in New Issue