# HG changeset patch # User Martin Rudalics # Date 1191664162 0 # Node ID c975fef407b4f518f483623facb1d808a8227116 # Parent d9165841eb0a802370a52b11441adea0f5f77139 (XTread_socket): When focus_follows_mouse is nil make SELECT_WINDOW_EVENT only if we don't leave the selected frame. diff -r d9165841eb0a -r c975fef407b4 src/macterm.c --- a/src/macterm.c Sat Oct 06 09:47:21 2007 +0000 +++ b/src/macterm.c Sat Oct 06 09:49:22 2007 +0000 @@ -11128,7 +11128,13 @@ 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.kind = SELECT_WINDOW_EVENT; inev.frame_or_window = window;