aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-07-12 14:39:45 +0000
committerGerd Moellmann2001-07-12 14:39:45 +0000
commit1d2b2268355e41ec2de05d05bb15c9cd54c26b30 (patch)
tree676734b6352d7760ecdd63710609a0ec0a2b558d /src/xterm.c
parentd9c0d4a31a12b6c2944ebba1ae5552ef249c28d2 (diff)
downloademacs-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/xterm.c')
-rw-r--r--src/xterm.c13
1 files changed, 9 insertions, 4 deletions
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);