diff options
author | Pavel Janík <Pavel@Janik.cz> | 2002-04-01 16:55:33 +0000 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2002-04-01 16:55:33 +0000 |
commit | ce1295bdc3b803ed804c4a077b502c8dc6b440e9 (patch) | |
tree | c55283fae623b1878721d78874022b149ac733db /src/xterm.c | |
parent | 4f4fada2f5bf3e9319952d94c0bfd5fa4b979fc7 (diff) | |
download | emacs-ce1295bdc3b803ed804c4a077b502c8dc6b440e9.tar.gz |
(XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows.
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 3 |
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) { |