(XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows.
This commit is contained in:
parent
4f4fada2f5
commit
ce1295bdc3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue