Commit 20af4831 authored by Jason Rumney's avatar Jason Rumney
Browse files

(init_environment): Set Vw32_num_mouse_buttons here.

parent f7737f5d
......@@ -91,6 +91,7 @@ Boston, MA 02111-1307, USA.
extern Lisp_Object Vw32_downcase_file_names;
extern Lisp_Object Vw32_generate_fake_inodes;
extern Lisp_Object Vw32_get_true_file_attributes;
extern Lisp_Object Vw32_num_mouse_buttons;
static char startup_dir[MAXPATHLEN];
......@@ -787,6 +788,11 @@ init_environment (char ** argv)
argv[0] = modname;
/* Determine if there is a middle mouse button, to allow parse_button
to decide whether right mouse events should be mouse-2 or
mouse-3. */
XSETINT (Vw32_num_mouse_buttons, GetSystemMetrics (SM_CMOUSEBUTTONS));
init_user_info ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment