Mercurial > emacs
changeset 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 | d9165841eb0a |
children | 06ef28700d63 |
files | src/macterm.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;