From fd142562c86351997dd876026b7c68e1df349b15 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 4 Sep 2007 21:40:59 +0000 Subject: [PATCH] Horizontal mouse wheel support: (w32_wnd_proc) : Merge with WM_MOUSEWHEEL. : Pass new system message to lisp. MULTI_KBOARD support: (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from terminal. --- src/w32fns.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/w32fns.c b/src/w32fns.c index e7a4bb3d5e..aeb4183393 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -3383,16 +3383,20 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) return 0; case WM_MOUSEWHEEL: + case WM_DROPFILES: wmsg.dwModifiers = w32_get_modifiers (); my_post_msg (&wmsg, hwnd, msg, wParam, lParam); signal_user_input (); return 0; - case WM_DROPFILES: + case WM_MOUSEHWHEEL: wmsg.dwModifiers = w32_get_modifiers (); my_post_msg (&wmsg, hwnd, msg, wParam, lParam); signal_user_input (); - return 0; + /* Non-zero must be returned when WM_MOUSEHWHEEL messages are + handled, to prevent the system trying to handle it by faking + scroll bar events. */ + return 1; case WM_TIMER: /* Flush out saved messages if necessary. */ @@ -7238,7 +7242,7 @@ x_create_tip_frame (dpyinfo, parms, text) Vx_resource_name = Vinvocation_name; #ifdef MULTI_KBOARD - kb = dpyinfo->kboard; + kb = dpyinfo->terminal->kboard; #else kb = &the_only_kboard; #endif -- 2.20.1