From: Martin Rudalics Date: Sat, 6 Oct 2007 09:52:39 +0000 (+0000) Subject: (w32_read_socket): When focus_follows_mouse is nil make X-Git-Tag: emacs-pretest-22.1.90~667 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=74a9b36f855e49f68f5e1e56a6b58052ad2e6133;p=emacs.git (w32_read_socket): When focus_follows_mouse is nil make SELECT_WINDOW_EVENT only if we don't leave the selected frame. --- diff --git a/src/w32term.c b/src/w32term.c index e56a74e0edd..f3d13b826e1 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -4339,7 +4339,13 @@ w32_read_socket (sd, expected, hold_quit) 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.kind = SELECT_WINDOW_EVENT; inev.frame_or_window = window;