summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x/xlib/ecore_x_xi2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_x/xlib/ecore_x_xi2.c')
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_xi2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_xi2.c b/src/lib/ecore_x/xlib/ecore_x_xi2.c
index cd6f5dd787..fc7daf9c19 100644
--- a/src/lib/ecore_x/xlib/ecore_x_xi2.c
+++ b/src/lib/ecore_x/xlib/ecore_x_xi2.c
@@ -388,13 +388,13 @@ _ecore_x_input_multi_handler(XEvent *xevent)
388#ifdef ECORE_XI2 388#ifdef ECORE_XI2
389 if (xevent->type != GenericEvent) return; 389 if (xevent->type != GenericEvent) return;
390 XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data); 390 XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
391 int devid = evd->deviceid;
392 391
393 switch (xevent->xcookie.evtype) 392 switch (xevent->xcookie.evtype)
394 { 393 {
395#ifdef ECORE_XI2_2 394#ifdef ECORE_XI2_2
396 case XI_TouchUpdate: 395 case XI_TouchUpdate:
397 { 396 {
397 int devid = evd->deviceid;
398 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchUpdate); 398 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchUpdate);
399 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return; 399 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return;
400 INF("Handling XI_TouchUpdate"); 400 INF("Handling XI_TouchUpdate");
@@ -416,6 +416,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
416 416
417 case XI_TouchBegin: 417 case XI_TouchBegin:
418 { 418 {
419 int devid = evd->deviceid;
419 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchBegin); 420 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchBegin);
420 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return; 421 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return;
421 INF("Handling XI_TouchBegin"); 422 INF("Handling XI_TouchBegin");
@@ -439,6 +440,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
439 440
440 case XI_TouchEnd: 441 case XI_TouchEnd:
441 { 442 {
443 int devid = evd->deviceid;
442 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchEnd); 444 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchEnd);
443 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) 445 if ((i == 0) && (evd->flags & XITouchEmulatingPointer))
444 { 446 {