diff options
| author | Jan Djärv | 2004-09-10 18:04:19 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-09-10 18:04:19 +0000 |
| commit | 844fc0850535556c733bbe78c44ef656b2d6cccd (patch) | |
| tree | a434e3231c98db1f902a094858b8541a4e2e4bb4 /src/xselect.c | |
| parent | b106731c46f622c5cdfaf0ed3c31ab3436cf5510 (diff) | |
| download | emacs-844fc0850535556c733bbe78c44ef656b2d6cccd.tar.gz emacs-844fc0850535556c733bbe78c44ef656b2d6cccd.zip | |
* xselect.c (x_reply_selection_request): XSync and UNBLOCK before
x_uncatch_errors so that possible protocol errors are delivered.
Diffstat (limited to 'src/xselect.c')
| -rw-r--r-- | src/xselect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c index 5de1beb9ac4..80ed34c69e2 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -744,9 +744,11 @@ x_reply_selection_request (event, format, data, size, type) | |||
| 744 | refering to the deleted window, and we'll get a BadWindow error | 744 | refering to the deleted window, and we'll get a BadWindow error |
| 745 | in XTread_socket when processing the events. I don't have | 745 | in XTread_socket when processing the events. I don't have |
| 746 | an idea how to fix that. gerd, 2001-01-98. */ | 746 | an idea how to fix that. gerd, 2001-01-98. */ |
| 747 | XFlush (display); | 747 | /* 2004-09-10: XSync and UNBLOCK so that possible protocol errors are |
| 748 | x_uncatch_errors (display, count); | 748 | delivered before uncatch errors. */ |
| 749 | XSync (display, False); | ||
| 749 | UNBLOCK_INPUT; | 750 | UNBLOCK_INPUT; |
| 751 | x_uncatch_errors (display, count); | ||
| 750 | } | 752 | } |
| 751 | 753 | ||
| 752 | /* Handle a SelectionRequest event EVENT. | 754 | /* Handle a SelectionRequest event EVENT. |