diff src/xselect.c @ 57050:d303ac34c1a0

* xselect.c (x_reply_selection_request): XSync and UNBLOCK before x_uncatch_errors so that possible protocol errors are delivered.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 10 Sep 2004 18:04:19 +0000
parents e6e0caa7ec87
children abdfb8ccbb2b
line wrap: on
line diff
--- a/src/xselect.c	Fri Sep 10 17:07:47 2004 +0000
+++ b/src/xselect.c	Fri Sep 10 18:04:19 2004 +0000
@@ -744,9 +744,11 @@
      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);
+  /* 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);
-  UNBLOCK_INPUT;
 }
 
 /* Handle a SelectionRequest event EVENT.