(XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows.

This commit is contained in:
Pavel Janík 2002-04-01 16:55:33 +00:00
parent 4f4fada2f5
commit ce1295bdc3

View file

@ -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)
{