# HG changeset patch # User Jan Dj¸«£rv # Date 1094842589 0 # Node ID abdfb8ccbb2b041c8e46998f3a10c707226c18ed # Parent c281215079d324a33d512af5d7b8e75542f11932 Must BLOCK/UNBLOCK around x_uncatch_errors. diff -r c281215079d3 -r abdfb8ccbb2b src/xselect.c --- a/src/xselect.c Fri Sep 10 18:19:37 2004 +0000 +++ b/src/xselect.c Fri Sep 10 18:56:29 2004 +0000 @@ -748,7 +748,13 @@ delivered before uncatch errors. */ XSync (display, False); UNBLOCK_INPUT; + + /* GTK queues events in addition to the queue in Xlib. So we + UNBLOCK to enter the event loop and get possible errors delivered, + and then BLOCK again because x_uncatch_errors requires it. */ + BLOCK_INPUT; x_uncatch_errors (display, count); + UNBLOCK_INPUT; } /* Handle a SelectionRequest event EVENT.