emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xterm.c,v [EMACS_22_BASE]


From: Martin Rudalics
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c,v [EMACS_22_BASE]
Date: Sat, 06 Oct 2007 09:54:20 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Branch:         EMACS_22_BASE
Changes by:     Martin Rudalics <m061211>       07/10/06 09:54:20

Index: xterm.c
===================================================================
RCS file: /sources/emacs/emacs/src/xterm.c,v
retrieving revision 1.943.2.9
retrieving revision 1.943.2.10
diff -u -b -r1.943.2.9 -r1.943.2.10
--- xterm.c     14 Sep 2007 06:20:48 -0000      1.943.2.9
+++ xterm.c     6 Oct 2007 09:54:19 -0000       1.943.2.10
@@ -6628,7 +6628,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.ie.kind = SELECT_WINDOW_EVENT;
                     inev.ie.frame_or_window = window;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]