Mercurial > emacs
changeset 7169:c21fcad6f1f5
(XTread_socket): Only top window cares about LeaveNotify.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 28 Apr 1994 07:59:17 +0000 |
parents | 82bb839ac5c6 |
children | 3b452d97f111 |
files | src/xterm.c |
diffstat | 1 files changed, 21 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Thu Apr 28 07:49:45 1994 +0000 +++ b/src/xterm.c Thu Apr 28 07:59:17 1994 +0000 @@ -3913,26 +3913,28 @@ case LeaveNotify: - f = x_any_window_to_frame (event.xcrossing.window); - - if (f == mouse_face_mouse_frame) - /* If we move outside the frame, - then we're certainly no longer on any text in the frame. */ - clear_mouse_face (); - - if (event.xcrossing.focus) + f = x_top_window_to_frame (event.xcrossing.window); + if (f) { - if (! x_focus_event_frame) - x_new_focus_frame (0); - else - x_new_focus_frame (f); - } - else - { - if (f == x_focus_event_frame) - x_focus_event_frame = 0; - if (f == x_focus_frame) - x_new_focus_frame (0); + if (f == mouse_face_mouse_frame) + /* If we move outside the frame, + then we're certainly no longer on any text in the frame. */ + clear_mouse_face (); + + if (event.xcrossing.focus) + { + if (! x_focus_event_frame) + x_new_focus_frame (0); + else + x_new_focus_frame (f); + } + else + { + if (f == x_focus_event_frame) + x_focus_event_frame = 0; + if (f == x_focus_frame) + x_new_focus_frame (0); + } } #ifdef USE_X_TOOLKIT goto OTHER;