From 7d72e3141ef23f4336680eab456d8f602731bc5a Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Sat, 6 Oct 2007 09:51:01 +0000 Subject: [PATCH] (dos_rawgetc): When focus_follows_mouse is nil make SELECT_WINDOW_EVENT only if we don't leave the selected frame. --- src/msdos.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.2