summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-04-08 16:04:10 +0100
committerRobin Watts <robin.watts@artifex.com>2015-04-08 16:04:10 +0100
commitaae4d9682f33187adc9dfe480fb83c05955afebe (patch)
tree845b1934575460872ee1a308c80343072f877489 /platform/x11
parentd14bc48846c9101797015225a02dd804081e9a34 (diff)
downloadmupdf-aae4d9682f33187adc9dfe480fb83c05955afebe.tar.xz
Fix mupdf viewer on windows; mousewheel events would stop keys responding
Mousewheel events would 'capture' the mouse, and consequently all keyboard events would be ignored until the next mouse button up. Simple fix.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/win_main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c
index 444e8d67..df29e022 100644
--- a/platform/x11/win_main.c
+++ b/platform/x11/win_main.c
@@ -1099,11 +1099,15 @@ viewproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
case WM_MOUSEWHEEL:
if ((signed short)HIWORD(wParam) > 0)
+ {
handlemouse(oldx, oldy, 4, 1);
- //handlekey(LOWORD(wParam) & MK_SHIFT ? '+' : 'k');
+ handlemouse(oldx, oldy, 4, -1);
+ }
else
+ {
handlemouse(oldx, oldy, 5, 1);
- //handlekey(LOWORD(wParam) & MK_SHIFT ? '-' : 'j');
+ handlemouse(oldx, oldy, 5, -1);
+ }
return 0;
/* Timer */