summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-09 11:57:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-09 11:57:30 +0900
commit870c81fd7282a355f9bdcf298ef87cb374575bdb (patch)
tree5b13f6859c876fa25f1e4b937623645a65f4f1d2 /src/lib/elput
parent891ae89d16b7624f5289dd92929d15355ff8a6ee (diff)
elput - remove pointless code in handling touch event
i commented the pointless code out. this fixes CID 1357145
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_evdev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 53279c98fe..5393a07c8d 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -1005,8 +1005,12 @@ _touch_event_send(Elput_Device *dev, struct libinput_event_touch *event, int typ
1005 ev->multi.root.y = ev->y; 1005 ev->multi.root.y = ev->y;
1006 1006
1007 btn = ((btn & 0x00F) + 1); 1007 btn = ((btn & 0x00F) + 1);
1008 if (btn == 3) btn = 2; 1008// XXX: this code is useless. above btn is set to 0 at declaration time, then
1009 else if (btn == 2) btn = 3; 1009// no code changes it until the above like effectively makes it 1. it can
1010// only ever be 1 so the below lines are pointless. this is probably a bug
1011// lurking...
1012// if (btn == 3) btn = 2;
1013// else if (btn == 2) btn = 3;
1010 ev->buttons = btn; 1014 ev->buttons = btn;
1011 1015
1012 ecore_event_add(type, ev, NULL, NULL); 1016 ecore_event_add(type, ev, NULL, NULL);