diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-06-09 09:00:06 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-06-09 09:05:01 -0400 |
commit | 5ffcaf605ef55130fd93127addd4737bdabf9a60 (patch) | |
tree | f4cb632486e3e3d7e3434ae9f183a66804891209 | |
parent | b90c1bf90e67f1838152185dce5a270f3f824f6b (diff) |
ecore-x: Fix warning of unused variable
Summary: We only need the 'devid' variable if we have support for XI2_2.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/ecore_x/xlib/ecore_x_xi2.c | 4 |
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 | { |