aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-09-04 21:40:59 +0000
committerJason Rumney2007-09-04 21:40:59 +0000
commitfd142562c86351997dd876026b7c68e1df349b15 (patch)
treec6af1e12883121f166385f65b5a6e04a54667067 /src
parentc36598761e3b75c2efe6c2c02c2c78d6d07b45af (diff)
downloademacs-fd142562c86351997dd876026b7c68e1df349b15.tar.gz
emacs-fd142562c86351997dd876026b7c68e1df349b15.zip
Horizontal mouse wheel support:
(w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL. <WM_MOUSEHWHEEL>: Pass new system message to lisp. MULTI_KBOARD support: (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from terminal.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index e7a4bb3d5ed..aeb4183393b 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -3383,16 +3383,20 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
3383 return 0; 3383 return 0;
3384 3384
3385 case WM_MOUSEWHEEL: 3385 case WM_MOUSEWHEEL:
3386 case WM_DROPFILES:
3386 wmsg.dwModifiers = w32_get_modifiers (); 3387 wmsg.dwModifiers = w32_get_modifiers ();
3387 my_post_msg (&wmsg, hwnd, msg, wParam, lParam); 3388 my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
3388 signal_user_input (); 3389 signal_user_input ();
3389 return 0; 3390 return 0;
3390 3391
3391 case WM_DROPFILES: 3392 case WM_MOUSEHWHEEL:
3392 wmsg.dwModifiers = w32_get_modifiers (); 3393 wmsg.dwModifiers = w32_get_modifiers ();
3393 my_post_msg (&wmsg, hwnd, msg, wParam, lParam); 3394 my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
3394 signal_user_input (); 3395 signal_user_input ();
3395 return 0; 3396 /* Non-zero must be returned when WM_MOUSEHWHEEL messages are
3397 handled, to prevent the system trying to handle it by faking
3398 scroll bar events. */
3399 return 1;
3396 3400
3397 case WM_TIMER: 3401 case WM_TIMER:
3398 /* Flush out saved messages if necessary. */ 3402 /* Flush out saved messages if necessary. */
@@ -7238,7 +7242,7 @@ x_create_tip_frame (dpyinfo, parms, text)
7238 Vx_resource_name = Vinvocation_name; 7242 Vx_resource_name = Vinvocation_name;
7239 7243
7240#ifdef MULTI_KBOARD 7244#ifdef MULTI_KBOARD
7241 kb = dpyinfo->kboard; 7245 kb = dpyinfo->terminal->kboard;
7242#else 7246#else
7243 kb = &the_only_kboard; 7247 kb = &the_only_kboard;
7244#endif 7248#endif