comparison src/macterm.c @ 78986:c975fef407b4

(XTread_socket): When focus_follows_mouse is nil make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
author Martin Rudalics <rudalics@gmx.at>
date Sat, 06 Oct 2007 09:49:22 +0000
parents 6d6dc60c958b
children aa736f6aebd0 5039706521c9
comparison
equal deleted inserted replaced
78985:d9165841eb0a 78986:c975fef407b4
11126 not selected now and last mouse movement 11126 not selected now and last mouse movement
11127 event was not in it. Minibuffer window 11127 event was not in it. Minibuffer window
11128 will be selected only when it is active. */ 11128 will be selected only when it is active. */
11129 if (WINDOWP (window) 11129 if (WINDOWP (window)
11130 && !EQ (window, last_window) 11130 && !EQ (window, last_window)
11131 && !EQ (window, selected_window)) 11131 && !EQ (window, selected_window)
11132 /* For click-to-focus window managers
11133 create event iff we don't leave the
11134 selected frame. */
11135 && (focus_follows_mouse
11136 || (EQ (XWINDOW (window)->frame,
11137 XWINDOW (selected_window)->frame))))
11132 { 11138 {
11133 inev.kind = SELECT_WINDOW_EVENT; 11139 inev.kind = SELECT_WINDOW_EVENT;
11134 inev.frame_or_window = window; 11140 inev.frame_or_window = window;
11135 } 11141 }
11136 11142