Mercurial > emacs
comparison src/frame.c @ 78984:a26a566a5577
(focus_follows_mouse): Moved here from frame.el to allow
window autoselection act appropriately when leaving selected frame.
(syms_of_frame): Initialize focus_follows_mouse.
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Sat, 06 Oct 2007 09:46:06 +0000 |
parents | 922696f363b0 |
children | ab853f85e4dc 5039706521c9 |
comparison
equal
deleted
inserted
replaced
78983:5e9c3bb5c034 | 78984:a26a566a5577 |
---|---|
116 Lisp_Object Vdefault_frame_alist; | 116 Lisp_Object Vdefault_frame_alist; |
117 Lisp_Object Vdefault_frame_scroll_bars; | 117 Lisp_Object Vdefault_frame_scroll_bars; |
118 Lisp_Object Vmouse_position_function; | 118 Lisp_Object Vmouse_position_function; |
119 Lisp_Object Vmouse_highlight; | 119 Lisp_Object Vmouse_highlight; |
120 Lisp_Object Vdelete_frame_functions; | 120 Lisp_Object Vdelete_frame_functions; |
121 | |
122 int focus_follows_mouse; | |
121 | 123 |
122 static void | 124 static void |
123 set_menu_bar_lines_1 (window, n) | 125 set_menu_bar_lines_1 (window, n) |
124 Lisp_Object window; | 126 Lisp_Object window; |
125 int n; | 127 int n; |
4149 current set of frames, or where the minibuffer is currently being | 4151 current set of frames, or where the minibuffer is currently being |
4150 displayed. | 4152 displayed. |
4151 | 4153 |
4152 This variable is local to the current terminal and cannot be buffer-local. */); | 4154 This variable is local to the current terminal and cannot be buffer-local. */); |
4153 | 4155 |
4156 DEFVAR_BOOL ("focus-follows-mouse", &focus_follows_mouse, | |
4157 doc: /* Non-nil if window system changes focus when you move the mouse. | |
4158 You should set this variable to tell Emacs how your window manager | |
4159 handles focus, since there is no way in general for Emacs to find out | |
4160 automatically. */); | |
4161 #ifdef HAVE_WINDOW_SYSTEM | |
4162 #if defined(HAVE_NTGUI) || defined(MAC_OS) | |
4163 focus_follows_mouse = 0; | |
4164 #else | |
4165 focus_follows_mouse = 1; | |
4166 #endif | |
4167 #else | |
4168 focus_follows_mouse = 0; | |
4169 #endif | |
4170 | |
4154 staticpro (&Vframe_list); | 4171 staticpro (&Vframe_list); |
4155 | 4172 |
4156 defsubr (&Sactive_minibuffer_window); | 4173 defsubr (&Sactive_minibuffer_window); |
4157 defsubr (&Sframep); | 4174 defsubr (&Sframep); |
4158 defsubr (&Sframe_live_p); | 4175 defsubr (&Sframe_live_p); |