Mercurial > emacs
diff src/xselect.c @ 57053:abdfb8ccbb2b
Must BLOCK/UNBLOCK around x_uncatch_errors.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Fri, 10 Sep 2004 18:56:29 +0000 |
parents | d303ac34c1a0 |
children | c02cbcd40932 6d9b668e8f94 566253900690 |
line wrap: on
line diff
--- 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.