summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-26 16:34:10 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-26 16:27:42 -0400
commitdc61c2e80fe4ae1ad34eff5f627ad473baa2543d (patch)
treed0cd3cff85e62ae525ad9f1f4f7ab59ef3532d5b /src/lib/elput
parentba1ab3a8b1b79b65c03c7c94e731a4396d9ebbf2 (diff)
elput: use unrounded coords for subpixel struct members in events
@fix
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_evdev.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 94de728e2d..539291f180 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -669,10 +669,10 @@ _pointer_motion_send(Elput_Device *edev)
669 ev->multi.radius_y = 1; 669 ev->multi.radius_y = 1;
670 ev->multi.pressure = ptr->pressure; 670 ev->multi.pressure = ptr->pressure;
671 ev->multi.angle = 0.0; 671 ev->multi.angle = 0.0;
672 ev->multi.x = ev->x; 672 ev->multi.x = ptr->x;
673 ev->multi.y = ev->y; 673 ev->multi.y = ptr->y;
674 ev->multi.root.x = ev->x; 674 ev->multi.root.x = ptr->x;
675 ev->multi.root.y = ev->y; 675 ev->multi.root.y = ptr->y;
676 676
677 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL); 677 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
678} 678}
@@ -772,10 +772,10 @@ _pointer_button_send(Elput_Device *edev, enum libinput_button_state state)
772 ev->multi.radius_y = 1; 772 ev->multi.radius_y = 1;
773 ev->multi.pressure = ptr->pressure; 773 ev->multi.pressure = ptr->pressure;
774 ev->multi.angle = 0.0; 774 ev->multi.angle = 0.0;
775 ev->multi.x = ev->x; 775 ev->multi.x = ptr->x;
776 ev->multi.y = ev->y; 776 ev->multi.y = ptr->y;
777 ev->multi.root.x = ev->x; 777 ev->multi.root.x = ptr->x;
778 ev->multi.root.y = ev->y; 778 ev->multi.root.y = ptr->y;
779 779
780 ev->buttons = ptr->buttons; 780 ev->buttons = ptr->buttons;
781 781
@@ -1034,10 +1034,10 @@ _touch_motion_send(Elput_Device *dev)
1034 ev->timestamp = touch->timestamp; 1034 ev->timestamp = touch->timestamp;
1035 ev->same_screen = 1; 1035 ev->same_screen = 1;
1036 1036
1037 ev->x = touch->x; 1037 ev->x = lround(touch->x);
1038 ev->y = touch->y; 1038 ev->y = lround(touch->y);
1039 ev->root.x = touch->x; 1039 ev->root.x = ev->x;
1040 ev->root.y = touch->y; 1040 ev->root.y = ev->y;
1041 1041
1042 ev->modifiers = dev->seat->modifiers; 1042 ev->modifiers = dev->seat->modifiers;
1043 1043
@@ -1047,10 +1047,10 @@ _touch_motion_send(Elput_Device *dev)
1047 ev->multi.radius_y = 1; 1047 ev->multi.radius_y = 1;
1048 ev->multi.pressure = touch->pressure; 1048 ev->multi.pressure = touch->pressure;
1049 ev->multi.angle = 0.0; 1049 ev->multi.angle = 0.0;
1050 ev->multi.x = ev->x; 1050 ev->multi.x = touch->x;
1051 ev->multi.y = ev->y; 1051 ev->multi.y = touch->y;
1052 ev->multi.root.x = ev->x; 1052 ev->multi.root.x = touch->x;
1053 ev->multi.root.y = ev->y; 1053 ev->multi.root.y = touch->y;
1054 1054
1055 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL); 1055 ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
1056} 1056}