diff options
| author | Gerd Moellmann | 2001-07-12 14:39:45 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-07-12 14:39:45 +0000 |
| commit | 1d2b2268355e41ec2de05d05bb15c9cd54c26b30 (patch) | |
| tree | 676734b6352d7760ecdd63710609a0ec0a2b558d /src | |
| parent | d9c0d4a31a12b6c2944ebba1ae5552ef249c28d2 (diff) | |
| download | emacs-1d2b2268355e41ec2de05d05bb15c9cd54c26b30.tar.gz emacs-1d2b2268355e41ec2de05d05bb15c9cd54c26b30.zip | |
(XTread_socket) <PropertyNotify>: Put the code
ignoring events on foreign windows in #if 0. Always dispatch
the event after checking it with x_handle_property_notify.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 16 | ||||
| -rw-r--r-- | src/xterm.c | 13 |
2 files changed, 25 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6b4499c7954..599d997b2ef 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2001-07-12 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xselect.c (x_decline_selection_request): Handle errors | ||
| 4 | caused by receivers that have vanished. | ||
| 5 | |||
| 6 | * xterm.c (XTread_socket) <PropertyNotify>: Put the code | ||
| 7 | ignoring events on foreign windows in #if 0. Always dispatch | ||
| 8 | the event after checking it with x_handle_property_notify. | ||
| 9 | |||
| 10 | * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined | ||
| 11 | depending on TRACE_SELECTION. Replace fprintfs in #if 0 with | ||
| 12 | TRACE macros to facilitate debugging. Add additional trace | ||
| 13 | statements. | ||
| 14 | (toplevel): Add prototypes for file-local functions. | ||
| 15 | (x_atom_to_symbol): Remove DPYINFO parameter. | ||
| 16 | |||
| 1 | 2001-07-11 Stefan Monnier <monnier@cs.yale.edu> | 17 | 2001-07-11 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 18 | ||
| 3 | * w32menu.c (menubar_selection_callback, w32_menu_show): | 19 | * w32menu.c (menubar_selection_callback, w32_menu_show): |
diff --git a/src/xterm.c b/src/xterm.c index 5991d3e1223..7061d549607 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9997,7 +9997,8 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 9997 | &event); | 9997 | &event); |
| 9998 | else | 9998 | else |
| 9999 | { | 9999 | { |
| 10000 | XSelectionRequestEvent *eventp = (XSelectionRequestEvent *) &event; | 10000 | XSelectionRequestEvent *eventp |
| 10001 | = (XSelectionRequestEvent *) &event; | ||
| 10001 | 10002 | ||
| 10002 | if (numchars == 0) | 10003 | if (numchars == 0) |
| 10003 | abort (); | 10004 | abort (); |
| @@ -10019,12 +10020,16 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 10019 | break; | 10020 | break; |
| 10020 | 10021 | ||
| 10021 | case PropertyNotify: | 10022 | case PropertyNotify: |
| 10022 | #ifdef USE_X_TOOLKIT | 10023 | #if 0 /* This is plain wrong. In the case that we are waiting for a |
| 10024 | PropertyNotify used as an ACK in incremental selection | ||
| 10025 | transfer, the property will be on the receiver's window. */ | ||
| 10026 | #if defined USE_X_TOOLKIT | ||
| 10023 | if (!x_any_window_to_frame (dpyinfo, event.xproperty.window)) | 10027 | if (!x_any_window_to_frame (dpyinfo, event.xproperty.window)) |
| 10024 | goto OTHER; | 10028 | goto OTHER; |
| 10025 | #endif /* not USE_X_TOOLKIT */ | 10029 | #endif |
| 10030 | #endif | ||
| 10026 | x_handle_property_notify (&event.xproperty); | 10031 | x_handle_property_notify (&event.xproperty); |
| 10027 | break; | 10032 | goto OTHER; |
| 10028 | 10033 | ||
| 10029 | case ReparentNotify: | 10034 | case ReparentNotify: |
| 10030 | f = x_top_window_to_frame (dpyinfo, event.xreparent.window); | 10035 | f = x_top_window_to_frame (dpyinfo, event.xreparent.window); |