# HG changeset patch # User Jan Dj¸«£rv # Date 1094839459 0 # Node ID d303ac34c1a03c7c36fafcdb86191bf50e5dae53 # Parent a9ea809c58f709f9b9833b22ed7a4f74abd17e7d * xselect.c (x_reply_selection_request): XSync and UNBLOCK before x_uncatch_errors so that possible protocol errors are delivered. diff -r a9ea809c58f7 -r d303ac34c1a0 src/ChangeLog --- 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 + + * 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 * msdos.c (msdos_set_cursor_shape): Add debugging print-out to diff -r a9ea809c58f7 -r d303ac34c1a0 src/xselect.c --- 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.