# HG changeset patch # User Pavel Jank # Date 1017680133 0 # Node ID 90abb8476f408b3ad37f6a7148712c2f32efbda5 # Parent ecd559f0d5c3c7d6a96ec9cac989d6b0347e83cb (XTread_socket): Generate SELECT_WINDOW_EVENTs only for Emacs windows. diff -r ecd559f0d5c3 -r 90abb8476f40 src/xterm.c --- 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) {