ecore_x_xi2: fix crash if device info is NULL.

_ecore_x_input_device_lookup can return NULL.
@fix
This commit is contained in:
Ji-Youn Park 2015-06-26 13:42:56 +09:00
parent 8ba212c3b6
commit 049b397a86
1 changed files with 2 additions and 0 deletions

View File

@ -657,6 +657,8 @@ _ecore_x_input_handler(XEvent *xevent)
XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
XIDeviceInfo *dev = _ecore_x_input_device_lookup(evd->deviceid);
if (!dev) return;
if ((dev->use == XISlavePointer) &&
!(evd->flags & XIPointerEmulated))
{