[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/frame.c,v
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/frame.c,v |
Date: |
Tue, 09 Oct 2007 08:53:09 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Miles Bader <miles> 07/10/09 08:52:58
Index: src/frame.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/frame.c,v
retrieving revision 1.351
retrieving revision 1.352
diff -u -b -r1.351 -r1.352
--- src/frame.c 2 Oct 2007 21:07:47 -0000 1.351
+++ src/frame.c 9 Oct 2007 08:52:51 -0000 1.352
@@ -124,6 +124,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;
@@ -4492,6 +4494,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, Stefan Monnier, 2007/10/02
- [Emacs-diffs] Changes to emacs/src/frame.c,v,
Miles Bader <=
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Stefan Monnier, 2007/10/10
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Stefan Monnier, 2007/10/10
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Miles Bader, 2007/10/14
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Stefan Monnier, 2007/10/16
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Stefan Monnier, 2007/10/24
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Juanma Barranquero, 2007/10/25
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Miles Bader, 2007/10/27
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Stefan Monnier, 2007/10/31