diff options
| author | Jason Rumney | 2000-02-27 21:28:38 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-02-27 21:28:38 +0000 |
| commit | 20af483168612edcf22085f4701d37b9d1cc8e05 (patch) | |
| tree | d896fd90810de28c50c44088fa63ae78456e1b2e /src | |
| parent | f7737f5dcf2c7736deefb7404249fb9b93f49764 (diff) | |
| download | emacs-20af483168612edcf22085f4701d37b9d1cc8e05.tar.gz emacs-20af483168612edcf22085f4701d37b9d1cc8e05.zip | |
(init_environment): Set Vw32_num_mouse_buttons here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -91,6 +91,7 @@ Boston, MA 02111-1307, USA. | |||
| 91 | extern Lisp_Object Vw32_downcase_file_names; | 91 | extern Lisp_Object Vw32_downcase_file_names; |
| 92 | extern Lisp_Object Vw32_generate_fake_inodes; | 92 | extern Lisp_Object Vw32_generate_fake_inodes; |
| 93 | extern Lisp_Object Vw32_get_true_file_attributes; | 93 | extern Lisp_Object Vw32_get_true_file_attributes; |
| 94 | extern Lisp_Object Vw32_num_mouse_buttons; | ||
| 94 | 95 | ||
| 95 | static char startup_dir[MAXPATHLEN]; | 96 | static char startup_dir[MAXPATHLEN]; |
| 96 | 97 | ||
| @@ -787,6 +788,11 @@ init_environment (char ** argv) | |||
| 787 | argv[0] = modname; | 788 | argv[0] = modname; |
| 788 | } | 789 | } |
| 789 | 790 | ||
| 791 | /* Determine if there is a middle mouse button, to allow parse_button | ||
| 792 | to decide whether right mouse events should be mouse-2 or | ||
| 793 | mouse-3. */ | ||
| 794 | XSETINT (Vw32_num_mouse_buttons, GetSystemMetrics (SM_CMOUSEBUTTONS)); | ||
| 795 | |||
| 790 | init_user_info (); | 796 | init_user_info (); |
| 791 | } | 797 | } |
| 792 | 798 | ||