]> code.delx.au - gnu-emacs/commitdiff
(XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows.
authorPavel Janík <Pavel@Janik.cz>
Mon, 1 Apr 2002 16:55:33 +0000 (16:55 +0000)
committerPavel Janík <Pavel@Janik.cz>
Mon, 1 Apr 2002 16:55:33 +0000 (16:55 +0000)
src/xterm.c

index 73e987531a935afa2761d34d71d48192e18daa86..7962d1b4d53b1bb5b26965c9e7005caee5f8a32a 100644 (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)
                          {