[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/frame.c,v [EMACS_22_BASE]
From: |
Martin Rudalics |
Subject: |
[Emacs-diffs] Changes to emacs/src/frame.c,v [EMACS_22_BASE] |
Date: |
Sat, 06 Oct 2007 09:46:07 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Branch: EMACS_22_BASE
Changes by: Martin Rudalics <m061211> 07/10/06 09:46:07
Index: frame.c
===================================================================
RCS file: /sources/emacs/emacs/src/frame.c,v
retrieving revision 1.340.2.1
retrieving revision 1.340.2.2
diff -u -b -r1.340.2.1 -r1.340.2.2
--- frame.c 25 Jul 2007 05:15:52 -0000 1.340.2.1
+++ frame.c 6 Oct 2007 09:46:06 -0000 1.340.2.2
@@ -119,6 +119,8 @@
Lisp_Object Vmouse_highlight;
Lisp_Object Vdelete_frame_functions;
+int focus_follows_mouse;
+
static void
set_menu_bar_lines_1 (window, n)
Lisp_Object window;
@@ -4151,6 +4153,21 @@
This variable is local to the current terminal and cannot be buffer-local.
*/);
+ DEFVAR_BOOL ("focus-follows-mouse", &focus_follows_mouse,
+ doc: /* Non-nil if window system changes focus when you move the
mouse.
+You should set this variable to tell Emacs how your window manager
+handles focus, since there is no way in general for Emacs to find out
+automatically. */);
+#ifdef HAVE_WINDOW_SYSTEM
+#if defined(HAVE_NTGUI) || defined(MAC_OS)
+ focus_follows_mouse = 0;
+#else
+ focus_follows_mouse = 1;
+#endif
+#else
+ focus_follows_mouse = 0;
+#endif
+
staticpro (&Vframe_list);
defsubr (&Sactive_minibuffer_window);
- [Emacs-diffs] Changes to emacs/src/frame.c,v [EMACS_22_BASE],
Martin Rudalics <=