summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2002-04-01 16:55:33 +0000
committerPavel Janík <Pavel@Janik.cz>2002-04-01 16:55:33 +0000
commitce1295bdc3b803ed804c4a077b502c8dc6b440e9 (patch)
treec55283fae623b1878721d78874022b149ac733db /src/xterm.c
parent4f4fada2f5bf3e9319952d94c0bfd5fa4b979fc7 (diff)
downloademacs-ce1295bdc3b803ed804c4a077b502c8dc6b440e9.tar.gz
(XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 73e987531a9..7962d1b4d53 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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)
{