summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2000-02-27 21:28:38 +0000
committerJason Rumney <jasonr@gnu.org>2000-02-27 21:28:38 +0000
commit7772e6df6c35fe0b1eef7691039360d925eef19f (patch)
tree892984168c9cb4ca70e5a052b87120730b2ff1db /src/w32.c
parent4169adfd7e133441ed71272f93238197e19c5b92 (diff)
downloademacs-7772e6df6c35fe0b1eef7691039360d925eef19f.tar.gz
(init_environment): Set Vw32_num_mouse_buttons here.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index 99ac51897d1..67cf9506ad6 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -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 ();
}