Commit 50fbcdcb authored by Martin Rudalics's avatar Martin Rudalics
Browse files

(handle_one_xevent): When focus_follows_mouse is nil make

SELECT_WINDOW_EVENT only if we don't leave the selected frame.
parent 74a9b36f
......@@ -6628,7 +6628,13 @@ handle_one_xevent (dpyinfo, eventp, finish, 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.ie.kind = SELECT_WINDOW_EVENT;
inev.ie.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