changeset 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 a9ea809c58f7
children 59091995520c
files src/ChangeLog src/xselect.c
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Sep 10 17:07:47 2004 +0000
+++ b/src/ChangeLog	Fri Sep 10 18:04:19 2004 +0000
@@ -1,3 +1,8 @@
+2004-09-10  Jan Dj,Ad(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
--- 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.