diff options
Diffstat (limited to 'src')
| -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) | |||
| 748 | delivered before uncatch errors. */ | 748 | delivered before uncatch errors. */ |
| 749 | XSync (display, False); | 749 | XSync (display, False); |
| 750 | UNBLOCK_INPUT; | 750 | UNBLOCK_INPUT; |
| 751 | |||
| 752 | /* GTK queues events in addition to the queue in Xlib. So we | ||
| 753 | UNBLOCK to enter the event loop and get possible errors delivered, | ||
| 754 | and then BLOCK again because x_uncatch_errors requires it. */ | ||
| 755 | BLOCK_INPUT; | ||
| 751 | x_uncatch_errors (display, count); | 756 | x_uncatch_errors (display, count); |
| 757 | UNBLOCK_INPUT; | ||
| 752 | } | 758 | } |
| 753 | 759 | ||
| 754 | /* Handle a SelectionRequest event EVENT. | 760 | /* Handle a SelectionRequest event EVENT. |