diff options
author | Martin Rudalics <rudalics@gmx.at> | 2007-10-06 09:52:39 +0000 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2007-10-06 09:52:39 +0000 |
commit | 74a9b36f855e49f68f5e1e56a6b58052ad2e6133 (patch) | |
tree | 65c4ff9b747eef51d11eca0639b325e986f7a54b /src/w32term.c | |
parent | 7d72e3141ef23f4336680eab456d8f602731bc5a (diff) | |
download | emacs-74a9b36f855e49f68f5e1e56a6b58052ad2e6133.tar.gz emacs-74a9b36f855e49f68f5e1e56a6b58052ad2e6133.tar.bz2 emacs-74a9b36f855e49f68f5e1e56a6b58052ad2e6133.zip |
(w32_read_socket): When focus_follows_mouse is nil make
SELECT_WINDOW_EVENT only if we don't leave the selected frame.
Diffstat (limited to 'src/w32term.c')
-rw-r--r-- | src/w32term.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c index e56a74e0edd..f3d13b826e1 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -4339,7 +4339,13 @@ w32_read_socket (sd, expected, hold_quit) 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; |