Changeset 3923
- Timestamp:
- 10/18/05 00:50:41 (3 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/mw32term.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r3922 r3923 1 2005-10-18 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 3 * mw32term.c (mw32_hide_mouse_by_wheel): Change type to 4 Lisp_Object. 5 (show_or_hide_mouse_cursor): Lower sensitivity to mouse motion 6 when hide mouse cursor by wheel rotaion. 7 1 8 2005-10-16 MIYOSHI Masanori <miyoshi@meadowy.org> 2 9 trunk/src/mw32term.c
r3922 r3923 747 747 | WS_EX_LAYERED); 748 748 } 749 /* Caloing SetLayeredWindowAttributes to update displaed frame image 750 when alpha is used. */ 749 750 /* Calling SetLayeredWindowAttributes to update displayed frame 751 image when alpha is used. */ 751 752 if (newalpha >= 0) 752 753 SetLayeredWindowAttributes (FRAME_MW32_WINDOW (f), … … 3714 3715 int mw32_lbutton_to_emacs_button; 3715 3716 int mw32_hide_mouse_timeout; 3716 int mw32_hide_mouse_by_wheel;3717 3717 int mw32_hide_mouse_on_key; 3718 Lisp_Object mw32_hide_mouse_by_wheel; 3718 3719 3719 3720 static void … … 4197 4198 { 4198 4199 static unsigned int mouse_hide_timer = 0; 4200 static int hidden_by_wheel = 0; 4201 static POINT hidden_by_wheel_point; 4202 int hidden_by_wheel_insensitive_range = 10; 4199 4203 4200 4204 if (mw32_inhibit_hide_mouse) … … 4203 4207 ShowCursor (TRUE); 4204 4208 dpyinfo->mouse_cursor_stat = 0; 4209 hidden_by_wheel = 0; 4205 4210 4206 4211 if (dpyinfo->mouse_face_hidden) … … 4226 4231 4227 4232 case WM_NCMOUSEMOVE: 4228 if (last_mouse_motion_message.lParam != msg.lParam) 4233 if (hidden_by_wheel && NUMBERP (mw32_hide_mouse_by_wheel)) 4234 hidden_by_wheel_insensitive_range = XINT (mw32_hide_mouse_by_wheel); 4235 4236 4237 if (hidden_by_wheel 4238 ? ((abs (LOWORD (msg.lParam) - hidden_by_wheel_point.x) 4239 > hidden_by_wheel_insensitive_range) 4240 || (abs (HIWORD (msg.lParam) - hidden_by_wheel_point.y) 4241 > hidden_by_wheel_insensitive_range)) 4242 : last_mouse_motion_message.lParam != msg.lParam) 4229 4243 { 4230 4244 last_mouse_motion_message = msg; 4231 4245 last_mouse_movement_time = msg.time; 4246 4247 hidden_by_wheel = 0; 4232 4248 4233 4249 if (dpyinfo->mouse_cursor_stat < 0) … … 4265 4281 ShowCursor (FALSE); 4266 4282 dpyinfo->mouse_cursor_stat = -1; 4283 hidden_by_wheel = 0; 4284 4267 4285 if (!dpyinfo->mouse_face_hidden 4268 4286 && INTEGERP (Vmouse_highlight)) … … 4286 4304 } 4287 4305 dpyinfo->mouse_face_hidden = 0; 4306 hidden_by_wheel = 0; 4288 4307 4289 4308 FRAME_MW32_OUTPUT (XFRAME (selected_frame))->current_cursor … … 4338 4357 dpyinfo->mouse_cursor_stat = -1; 4339 4358 ShowCursor (FALSE); 4359 hidden_by_wheel = 0; 4340 4360 4341 4361 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) … … 4353 4373 #ifdef W32_INTELLIMOUSE 4354 4374 case WM_MOUSEWHEEL: 4355 if (mw32_hide_mouse_by_wheel && dpyinfo->mouse_cursor_stat == 0) 4375 hidden_by_wheel_point.x = LOWORD (msg.lParam); 4376 hidden_by_wheel_point.y = HIWORD (msg.lParam); 4377 ScreenToClient (FRAME_MW32_WINDOW (XFRAME (selected_frame)), 4378 &hidden_by_wheel_point); 4379 4380 if (! NILP (mw32_hide_mouse_by_wheel) && dpyinfo->mouse_cursor_stat == 0) 4356 4381 { 4357 4382 dpyinfo->mouse_cursor_stat = -1; 4358 4383 ShowCursor (FALSE); 4359 4384 4385 hidden_by_wheel = 1; 4386 4360 4387 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) 4361 4388 { … … 6795 6822 doc: /* Mouse cursor will hide after some rest. (in milliseconds) 6796 6823 Cursor will not hide if 0. (default) */); 6797 DEFVAR_ BOOL("w32-hide-mouse-by-wheel", &mw32_hide_mouse_by_wheel,6824 DEFVAR_LISP ("w32-hide-mouse-by-wheel", &mw32_hide_mouse_by_wheel, 6798 6825 doc: /* Non nil means mouse cursor will hide on mouse wheel rotation. */); 6799 6826 DEFVAR_BOOL ("w32-hide-mouse-on-key", &mw32_hide_mouse_on_key, … … 6810 6837 mw32_hide_mouse_timeout = 0; /* infinite */ 6811 6838 mw32_hide_mouse_on_key = 0; 6839 mw32_hide_mouse_by_wheel = Qnil; 6812 6840 mw32_lbutton_to_emacs_button = 0; 6813 6841 mw32_mbutton_to_emacs_button = 2;
