changeset 44309:90abb8476f40

(XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows.
author Pavel Janík <Pavel@Janik.cz>
date Mon, 01 Apr 2002 16:55:33 +0000
parents ecd559f0d5c3
children 0605f332660a
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Apr 01 16:37:41 2002 +0000
+++ b/src/xterm.c	Mon Apr 01 16:55:33 2002 +0000
@@ -10890,7 +10890,8 @@
 			/* 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)
 			  {