Commit ce1295bd authored by Pavel Janík's avatar Pavel Janík

(XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows.

parent 4f4fada2
......@@ -10890,7 +10890,8 @@ XTread_socket (sd, bufp, numchars, expected)
/* Window will be selected only when it is not selected now and
last mouse movement event was not in it. Minibuffer window
will be selected iff it is active. */
if (!EQ (window, last_window)
if (WINDOWP(window)
&& !EQ (window, last_window)
&& !EQ (window, selected_window)
&& numchars > 0)
{
......
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