diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2004-09-10 18:56:29 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2004-09-10 18:56:29 +0000 |
commit | 0608b1a02e348e79206f52bde026f4e3bb9c5e93 (patch) | |
tree | eb0913e087c571dbc2779b967db356b5226b8e49 /src/xselect.c | |
parent | 21065c92fa2d42341307263f65427257eaec81da (diff) | |
download | emacs-0608b1a02e348e79206f52bde026f4e3bb9c5e93.tar.gz |
Must BLOCK/UNBLOCK around x_uncatch_errors.
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c index 80ed34c69e2..1e3efd2bf54 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -748,7 +748,13 @@ x_reply_selection_request (event, format, data, size, type) 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. |