comparison src/w32term.c @ 55646:358a5c0b4571

(w32_num_mouse_buttons): Rename from Vw32_num_mouse_buttons and make it an int.
author Jason Rumney <jasonr@gnu.org>
date Mon, 17 May 2004 21:43:22 +0000
parents b4bf3dd67827
children e6e0caa7ec87 ad01ab3c6f4d 4c90ffeb71c5
comparison
equal deleted inserted replaced
55645:5b3f2477d17b 55646:358a5c0b4571
175 /* Where the mouse was last time we reported a mouse event. */ 175 /* Where the mouse was last time we reported a mouse event. */
176 176
177 static RECT last_mouse_glyph; 177 static RECT last_mouse_glyph;
178 static Lisp_Object last_mouse_press_frame; 178 static Lisp_Object last_mouse_press_frame;
179 179
180 Lisp_Object Vw32_num_mouse_buttons; 180 int w32_num_mouse_buttons;
181 181
182 Lisp_Object Vw32_swap_mouse_buttons; 182 Lisp_Object Vw32_swap_mouse_buttons;
183 183
184 /* Control whether x_raise_frame also sets input focus. */ 184 /* Control whether x_raise_frame also sets input focus. */
185 Lisp_Object Vw32_grab_focus_on_raise; 185 Lisp_Object Vw32_grab_focus_on_raise;
4358 clear_mouse_face (dpyinfo); 4358 clear_mouse_face (dpyinfo);
4359 } 4359 }
4360 4360
4361 /* If the contents of the global variable help_echo_string 4361 /* If the contents of the global variable help_echo_string
4362 has changed, generate a HELP_EVENT. */ 4362 has changed, generate a HELP_EVENT. */
4363 #if 0 /* The below is an invalid comparison when USE_LISP_UNION_TYPE.
4364 But it was originally changed to this to fix a bug, so I have
4365 not removed it completely in case the bug is still there. */
4363 if (help_echo_string != previous_help_echo_string || 4366 if (help_echo_string != previous_help_echo_string ||
4364 (!NILP (help_echo_string) && !STRINGP (help_echo_string) && f->mouse_moved)) 4367 (!NILP (help_echo_string) && !STRINGP (help_echo_string) && f->mouse_moved))
4368 #else /* This is what xterm.c does. */
4369 if (!NILP (help_echo_string)
4370 || !NILP (previous_help_echo_string))
4365 do_help = 1; 4371 do_help = 1;
4366 4372 #endif
4367 break; 4373 break;
4368 4374
4369 case WM_LBUTTONDOWN: 4375 case WM_LBUTTONDOWN:
4370 case WM_LBUTTONUP: 4376 case WM_LBUTTONUP:
4371 case WM_MBUTTONDOWN: 4377 case WM_MBUTTONDOWN:
4782 else 4788 else
4783 frame = Qnil; 4789 frame = Qnil;
4784 4790
4785 if (do_help > 0) 4791 if (do_help > 0)
4786 { 4792 {
4787 if (help_echo_string == Qnil) 4793 if (NILP (help_echo_string))
4788 { 4794 {
4789 help_echo_object = help_echo_window = Qnil; 4795 help_echo_object = help_echo_window = Qnil;
4790 help_echo_pos = -1; 4796 help_echo_pos = -1;
4791 } 4797 }
4792 4798
6457 6463
6458 staticpro (&Qvendor_specific_keysyms); 6464 staticpro (&Qvendor_specific_keysyms);
6459 Qvendor_specific_keysyms = intern ("vendor-specific-keysyms"); 6465 Qvendor_specific_keysyms = intern ("vendor-specific-keysyms");
6460 6466
6461 DEFVAR_INT ("w32-num-mouse-buttons", 6467 DEFVAR_INT ("w32-num-mouse-buttons",
6462 &Vw32_num_mouse_buttons, 6468 &w32_num_mouse_buttons,
6463 doc: /* Number of physical mouse buttons. */); 6469 doc: /* Number of physical mouse buttons. */);
6464 Vw32_num_mouse_buttons = Qnil; 6470 w32_num_mouse_buttons = 2;
6465 6471
6466 DEFVAR_LISP ("w32-swap-mouse-buttons", 6472 DEFVAR_LISP ("w32-swap-mouse-buttons",
6467 &Vw32_swap_mouse_buttons, 6473 &Vw32_swap_mouse_buttons,
6468 doc: /* Swap the mapping of middle and right mouse buttons. 6474 doc: /* Swap the mapping of middle and right mouse buttons.
6469 When nil, middle button is mouse-2 and right button is mouse-3. */); 6475 When nil, middle button is mouse-2 and right button is mouse-3. */);