Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
10c5e63d
Commit
10c5e63d
authored
Apr 28, 1994
by
Karl Heuer
Browse files
(XTread_socket): Only top window cares about LeaveNotify.
parent
24597608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
src/xterm.c
src/xterm.c
+21
-19
No files found.
src/xterm.c
View file @
10c5e63d
...
...
@@ -3913,26 +3913,28 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
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)
{
if (! x_focus_event_frame)
x_new_focus_frame (0);
else
x_new_focus_frame (f);
}
else
f = x_top_window_to_frame (event.xcrossing.window);
if (f)
{
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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment