From: Martin Rudalics Date: Sat, 6 Oct 2007 09:51:01 +0000 (+0000) Subject: (dos_rawgetc): When focus_follows_mouse is nil make X-Git-Tag: emacs-pretest-22.1.90~668 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d72e3141ef23f4336680eab456d8f602731bc5a;p=emacs.git (dos_rawgetc): When focus_follows_mouse is nil make SELECT_WINDOW_EVENT only if we don't leave the selected frame. --- diff --git a/src/msdos.c b/src/msdos.c index ef65597f7e7..2bac19e6592 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -3393,7 +3393,13 @@ dos_rawgetc () it is active. */ if (WINDOWP (mouse_window) && !EQ (mouse_window, last_mouse_window) - && !EQ (mouse_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)))) { event.kind = SELECT_WINDOW_EVENT; event.frame_or_window = mouse_window;