diff options
| author | Richard M. Stallman | 1994-02-19 22:56:21 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-19 22:56:21 +0000 |
| commit | 1dea5a83198dec385b06f00be3272964b64b4ebf (patch) | |
| tree | d733353418d1f667d41c792e10ddb9cafdb536fa /src | |
| parent | 364e6904f33db6725c8ae0fa3853e7b9c3b5b218 (diff) | |
| download | emacs-1dea5a83198dec385b06f00be3272964b64b4ebf.tar.gz emacs-1dea5a83198dec385b06f00be3272964b64b4ebf.zip | |
(XTread_socket--cases KeyPress, EnterNotify, LeaveNotify)
(cases FocusIn, FocusOut): Use x_any_window_to_frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index 7a4a718374d..6be11f7e9a9 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3144,7 +3144,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3144 | 3144 | ||
| 3145 | #ifdef HAVE_X11 | 3145 | #ifdef HAVE_X11 |
| 3146 | case KeyPress: | 3146 | case KeyPress: |
| 3147 | f = x_window_to_frame (event.xkey.window); | 3147 | f = x_any_window_to_frame (event.xkey.window); |
| 3148 | 3148 | ||
| 3149 | if (f != 0) | 3149 | if (f != 0) |
| 3150 | { | 3150 | { |
| @@ -3337,7 +3337,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3337 | then a mere LeaveNotify is enough to free you. */ | 3337 | then a mere LeaveNotify is enough to free you. */ |
| 3338 | 3338 | ||
| 3339 | case EnterNotify: | 3339 | case EnterNotify: |
| 3340 | f = x_window_to_frame (event.xcrossing.window); | 3340 | f = x_any_window_to_frame (event.xcrossing.window); |
| 3341 | 3341 | ||
| 3342 | if (event.xcrossing.focus) /* Entered Window */ | 3342 | if (event.xcrossing.focus) /* Entered Window */ |
| 3343 | { | 3343 | { |
| @@ -3358,7 +3358,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3358 | break; | 3358 | break; |
| 3359 | 3359 | ||
| 3360 | case FocusIn: | 3360 | case FocusIn: |
| 3361 | f = x_window_to_frame (event.xfocus.window); | 3361 | f = x_any_window_to_frame (event.xfocus.window); |
| 3362 | if (event.xfocus.detail != NotifyPointer) | 3362 | if (event.xfocus.detail != NotifyPointer) |
| 3363 | x_focus_event_frame = f; | 3363 | x_focus_event_frame = f; |
| 3364 | if (f) | 3364 | if (f) |
| @@ -3370,7 +3370,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3370 | 3370 | ||
| 3371 | 3371 | ||
| 3372 | case LeaveNotify: | 3372 | case LeaveNotify: |
| 3373 | f = x_window_to_frame (event.xcrossing.window); | 3373 | f = x_any_window_to_frame (event.xcrossing.window); |
| 3374 | 3374 | ||
| 3375 | if (event.xcrossing.focus) | 3375 | if (event.xcrossing.focus) |
| 3376 | { | 3376 | { |
| @@ -3392,7 +3392,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3392 | break; | 3392 | break; |
| 3393 | 3393 | ||
| 3394 | case FocusOut: | 3394 | case FocusOut: |
| 3395 | f = x_window_to_frame (event.xfocus.window); | 3395 | f = x_any_window_to_frame (event.xfocus.window); |
| 3396 | if (event.xfocus.detail != NotifyPointer | 3396 | if (event.xfocus.detail != NotifyPointer |
| 3397 | && f == x_focus_event_frame) | 3397 | && f == x_focus_event_frame) |
| 3398 | x_focus_event_frame = 0; | 3398 | x_focus_event_frame = 0; |