Mercurial > emacs
changeset 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 | c281215079d3 |
children | 0b058857c704 |
files | src/xselect.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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.