projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dcc261
)
Fixed Wayland horizontal mouse wheel direction.
author
Armin Novak
<armin.novak@thincast.com>
Mon, 7 Jan 2019 09:02:04 +0000
(10:02 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Mon, 7 Jan 2019 09:02:04 +0000
(10:02 +0100)
client/Wayland/wlf_input.c
patch
|
blob
|
history
diff --git
a/client/Wayland/wlf_input.c
b/client/Wayland/wlf_input.c
index
8bb8c3a
..
2687955
100644
(file)
--- a/
client/Wayland/wlf_input.c
+++ b/
client/Wayland/wlf_input.c
@@
-104,7
+104,6
@@
BOOL wlf_handle_pointer_axis(freerdp* instance, UwacPointerAxisEvent* ev)
return FALSE;
input = instance->input;
- flags = PTR_FLAGS_WHEEL;
switch (ev->axis)
{
@@
-123,7
+122,7
@@
BOOL wlf_handle_pointer_axis(freerdp* instance, UwacPointerAxisEvent* ev)
direction = wl_fixed_to_int(ev->value);
flags |= 0x0078; /* TODO: Calculate the distance with the provided value size */
- if (direction
>
0)
+ if (direction
<
0)
flags |= PTR_FLAGS_WHEEL_NEGATIVE;
return freerdp_input_send_mouse_event(input, flags, ev->x, ev->y);