summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-09 09:03:54 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-09 09:05:01 -0400
commit03acea0a8a174d5a25a917d2831fa38335fedcfa (patch)
tree2b902209e6adffaf6c24b3ffd1fcf5d0ad24782c /src
parent0d28a1154304987a5069393d0cb903aad00b6508 (diff)
ecore-x: Fix compiler warning of unused variable
Summary: XIDeviceEvent variable is only used if we have support for XI2_2. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src')
-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 9298bceb4b..cbb709bb26 100644
--- a/src/lib/ecore_x/xlib/ecore_x_xi2.c
+++ b/src/lib/ecore_x/xlib/ecore_x_xi2.c
@@ -387,13 +387,13 @@ _ecore_x_input_multi_handler(XEvent *xevent)
387{ 387{
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);
391 390
392 switch (xevent->xcookie.evtype) 391 switch (xevent->xcookie.evtype)
393 { 392 {
394#ifdef ECORE_XI2_2 393#ifdef ECORE_XI2_2
395 case XI_TouchUpdate: 394 case XI_TouchUpdate:
396 { 395 {
396 XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
397 int devid = evd->deviceid; 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;
@@ -416,6 +416,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
416 416
417 case XI_TouchBegin: 417 case XI_TouchBegin:
418 { 418 {
419 XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
419 int devid = evd->deviceid; 420 int devid = evd->deviceid;
420 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchBegin); 421 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchBegin);
421 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return; 422 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return;
@@ -440,6 +441,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
440 441
441 case XI_TouchEnd: 442 case XI_TouchEnd:
442 { 443 {
444 XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
443 int devid = evd->deviceid; 445 int devid = evd->deviceid;
444 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchEnd); 446 int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchEnd);
445 if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) 447 if ((i == 0) && (evd->flags & XITouchEmulatingPointer))