From: Martin Rudalics Date: Sat, 6 Oct 2007 09:54:19 +0000 (+0000) Subject: (handle_one_xevent): When focus_follows_mouse is nil make X-Git-Tag: emacs-pretest-22.1.90~666 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=50fbcdcb0632b7ca81e3bf5b71e59f82a9e2127b;p=emacs.git (handle_one_xevent): When focus_follows_mouse is nil make SELECT_WINDOW_EVENT only if we don't leave the selected frame. --- diff --git a/src/xterm.c b/src/xterm.c index ba1102c65d0..ee26f054b4e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6628,7 +6628,13 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) will be selected only when it is active. */ if (WINDOWP (window) && !EQ (window, last_window) - && !EQ (window, selected_window)) + && !EQ (window, selected_window) + /* For click-to-focus window managers + create event iff we don't leave the + selected frame. */ + && (focus_follows_mouse + || (EQ (XWINDOW (window)->frame, + XWINDOW (selected_window)->frame)))) { inev.ie.kind = SELECT_WINDOW_EVENT; inev.ie.frame_or_window = window;