Commit c635b2be authored by William Skaggs's avatar William Skaggs
Browse files

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.
parent 81142725
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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment