Commit b0c6cec4 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

(XTread_socket): When focus_follows_mouse is nil make

SELECT_WINDOW_EVENT only if we don't leave the selected
frame.
parent 9cfa62c7
......@@ -11128,7 +11128,13 @@ XTread_socket (sd, expected, hold_quit)
will be selected only when it is active. */
if (WINDOWP (window)
&& !EQ (window, last_window)
&& !EQ (window, selected_window))
&& !EQ (window, selected_window)
/* For click-to-focus window managers
create event iff we don't leave the
selected frame. */
&& (focus_follows_mouse
|| (EQ (XWINDOW (window)->frame,
XWINDOW (selected_window)->frame))))
{
inev.kind = SELECT_WINDOW_EVENT;
inev.frame_or_window = window;
......
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