comparison src/msdos.c @ 78987:06ef28700d63

(dos_rawgetc): 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:51:01 +0000
parents 1677cf1c2509
children 848bc3eac628 5039706521c9
comparison
equal deleted inserted replaced
78986:c975fef407b4 78987:06ef28700d63
3391 selected now, and the last mouse movement event was 3391 selected now, and the last mouse movement event was
3392 not in it. A minibuffer window will be selected iff 3392 not in it. A minibuffer window will be selected iff
3393 it is active. */ 3393 it is active. */
3394 if (WINDOWP (mouse_window) 3394 if (WINDOWP (mouse_window)
3395 && !EQ (mouse_window, last_mouse_window) 3395 && !EQ (mouse_window, last_mouse_window)
3396 && !EQ (mouse_window, selected_window)) 3396 && !EQ (window, selected_window)
3397 /* For click-to-focus window managers
3398 create event iff we don't leave the
3399 selected frame. */
3400 && (focus_follows_mouse
3401 || (EQ (XWINDOW (window)->frame,
3402 XWINDOW (selected_window)->frame))))
3397 { 3403 {
3398 event.kind = SELECT_WINDOW_EVENT; 3404 event.kind = SELECT_WINDOW_EVENT;
3399 event.frame_or_window = mouse_window; 3405 event.frame_or_window = mouse_window;
3400 event.arg = Qnil; 3406 event.arg = Qnil;
3401 event.timestamp = event_timestamp (); 3407 event.timestamp = event_timestamp ();