forked from enlightenment/efl
ecore_x_xi2: fix crash if device info is NULL.
_ecore_x_input_device_lookup can return NULL. @fix
This commit is contained in:
parent
8ba212c3b6
commit
049b397a86
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue