+2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
+ x_uncatch_errors so that possible protocol errors are delivered.
+
2004-09-10 Eli Zaretskii <eliz@gnu.org>
* msdos.c (msdos_set_cursor_shape): Add debugging print-out to
refering to the deleted window, and we'll get a BadWindow error
in XTread_socket when processing the events. I don't have
an idea how to fix that. gerd, 2001-01-98. */
- XFlush (display);
- x_uncatch_errors (display, count);
+ /* 2004-09-10: XSync and UNBLOCK so that possible protocol errors are
+ delivered before uncatch errors. */
+ XSync (display, False);
UNBLOCK_INPUT;
+ x_uncatch_errors (display, count);
}
\f
/* Handle a SelectionRequest event EVENT.