Commit 0a178815 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(XTread_socket, case ClientMessage): Don't call

XSetInputFocus if event is not for an existing frame.

(XTread_socket) [USE_X_TOOLKIT]: Never pass motion events to the toolkit.
parent f6dd89c6
......@@ -3398,13 +3398,10 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
if ([0] == Xatom_wm_take_focus)
f = x_window_to_frame (event.xclient.window);
#if 0 /* x_focus_on_frame is a no-op anyway. */
if (f)
x_focus_on_frame (f);
/* Since we set WM_TAKE_FOCUS, we must call
XSetInputFocus explicitly. */
XSetInputFocus explicitly. But not if f is null,
since that might be an event for a deleted frame. */
if (f)
XSetInputFocus (event.xclient.display,
......@@ -4012,9 +4009,14 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
clear_mouse_face ();
#if 0 /* This should be unnecessary, since the toolkit has no use
for motion events that happen outside of the menu event loop,
and it seems to cause the bug that mouse events stop coming
after a while. */
goto OTHER;
#endif /* USE_X_TOOLKIT */
case ConfigureNotify:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment