forked from enlightenment/efl
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>
This commit is contained in:
parent
0d28a11543
commit
03acea0a8a
|
@ -387,13 +387,13 @@ _ecore_x_input_multi_handler(XEvent *xevent)
|
|||
{
|
||||
#ifdef ECORE_XI2
|
||||
if (xevent->type != GenericEvent) return;
|
||||
XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
|
||||
|
||||
switch (xevent->xcookie.evtype)
|
||||
{
|
||||
#ifdef ECORE_XI2_2
|
||||
case XI_TouchUpdate:
|
||||
{
|
||||
XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
|
||||
int devid = evd->deviceid;
|
||||
int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchUpdate);
|
||||
if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return;
|
||||
|
@ -416,6 +416,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
|
|||
|
||||
case XI_TouchBegin:
|
||||
{
|
||||
XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
|
||||
int devid = evd->deviceid;
|
||||
int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchBegin);
|
||||
if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return;
|
||||
|
@ -440,6 +441,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
|
|||
|
||||
case XI_TouchEnd:
|
||||
{
|
||||
XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
|
||||
int devid = evd->deviceid;
|
||||
int i = _ecore_x_input_touch_index_get(devid, evd->detail, XI_TouchEnd);
|
||||
if ((i == 0) && (evd->flags & XITouchEmulatingPointer))
|
||||
|
|
Loading…
Reference in New Issue