Mercurial > emacs
comparison src/xterm.c @ 85114:5039706521c9
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-875
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 09 Oct 2007 08:52:57 +0000 |
parents | dc568df45c10 7c51b825de30 |
children | 4f6ca2fff62a bdb3fe0ba9fa |
comparison
equal
deleted
inserted
replaced
85113:82b4a12fd080 | 85114:5039706521c9 |
---|---|
6713 /* Window will be selected only when it is not selected now and | 6713 /* Window will be selected only when it is not selected now and |
6714 last mouse movement event was not in it. Minibuffer window | 6714 last mouse movement event was not in it. Minibuffer window |
6715 will be selected only when it is active. */ | 6715 will be selected only when it is active. */ |
6716 if (WINDOWP (window) | 6716 if (WINDOWP (window) |
6717 && !EQ (window, last_window) | 6717 && !EQ (window, last_window) |
6718 && !EQ (window, selected_window)) | 6718 && !EQ (window, selected_window) |
6719 /* For click-to-focus window managers | |
6720 create event iff we don't leave the | |
6721 selected frame. */ | |
6722 && (focus_follows_mouse | |
6723 || (EQ (XWINDOW (window)->frame, | |
6724 XWINDOW (selected_window)->frame)))) | |
6719 { | 6725 { |
6720 inev.ie.kind = SELECT_WINDOW_EVENT; | 6726 inev.ie.kind = SELECT_WINDOW_EVENT; |
6721 inev.ie.frame_or_window = window; | 6727 inev.ie.frame_or_window = window; |
6722 } | 6728 } |
6723 | 6729 |