Mercurial > emacs
comparison src/xterm.c @ 38387:293a8b219972
(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.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 12 Jul 2001 14:39:21 +0000 |
parents | f546577bb4e9 |
children | a702b7686511 |
comparison
equal
deleted
inserted
replaced
38386:6bf3530c700d | 38387:293a8b219972 |
---|---|
9995 if (x_queue_selection_requests) | 9995 if (x_queue_selection_requests) |
9996 x_queue_event (x_window_to_frame (dpyinfo, event.xselectionrequest.owner), | 9996 x_queue_event (x_window_to_frame (dpyinfo, event.xselectionrequest.owner), |
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 (); |
10004 | 10005 |
10005 bufp->kind = selection_request_event; | 10006 bufp->kind = selection_request_event; |
10017 numchars -= 1; | 10018 numchars -= 1; |
10018 } | 10019 } |
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); |
10031 if (f) | 10036 if (f) |
10032 { | 10037 { |