diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xselect.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c index b06b5b356fd..943f21d094c 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -741,6 +741,7 @@ x_handle_selection_clear (event) | |||
| 741 | { | 741 | { |
| 742 | for (; CONSP (rest); rest = Fcdr (rest)) | 742 | for (; CONSP (rest); rest = Fcdr (rest)) |
| 743 | call1 (Fcar (rest), selection_symbol); | 743 | call1 (Fcar (rest), selection_symbol); |
| 744 | prepare_menu_bars (); | ||
| 744 | redisplay_preserve_echo_area (); | 745 | redisplay_preserve_echo_area (); |
| 745 | } | 746 | } |
| 746 | } | 747 | } |
| @@ -983,6 +984,7 @@ x_get_foreign_selection (selection_symbol, target_type) | |||
| 983 | type_atom = symbol_to_x_atom (display, target_type); | 984 | type_atom = symbol_to_x_atom (display, target_type); |
| 984 | 985 | ||
| 985 | BLOCK_INPUT; | 986 | BLOCK_INPUT; |
| 987 | x_catch_errors (); | ||
| 986 | XConvertSelection (display, selection_atom, type_atom, target_property, | 988 | XConvertSelection (display, selection_atom, type_atom, target_property, |
| 987 | requestor_window, requestor_time); | 989 | requestor_window, requestor_time); |
| 988 | XFlushQueue (); | 990 | XFlushQueue (); |
| @@ -998,6 +1000,11 @@ x_get_foreign_selection (selection_symbol, target_type) | |||
| 998 | usecs = (x_selection_timeout % 1000) * 1000; | 1000 | usecs = (x_selection_timeout % 1000) * 1000; |
| 999 | wait_reading_process_input (secs, usecs, reading_selection_reply, 0); | 1001 | wait_reading_process_input (secs, usecs, reading_selection_reply, 0); |
| 1000 | 1002 | ||
| 1003 | BLOCK_INPUT; | ||
| 1004 | x_check_errors ("Cannot get selection: %s"); | ||
| 1005 | x_uncatch_errors (); | ||
| 1006 | UNBLOCK_INPUT; | ||
| 1007 | |||
| 1001 | if (NILP (XCONS (reading_selection_reply)->car)) | 1008 | if (NILP (XCONS (reading_selection_reply)->car)) |
| 1002 | error ("timed out waiting for reply from selection owner"); | 1009 | error ("timed out waiting for reply from selection owner"); |
| 1003 | 1010 | ||