forked from enlightenment/efl
and now make my modifications to multittouch this morning also work
again with mpx automatically. yay! SVN revision: 64071
This commit is contained in:
parent
ee158e76fc
commit
d45161691a
|
@ -236,6 +236,17 @@ ecore_x_input_multi_select(Ecore_X_Window win)
|
|||
find = EINA_TRUE;
|
||||
}
|
||||
else if (dev->use == XISlavePointer)
|
||||
{
|
||||
XIDeviceInfo *atdev = NULL;
|
||||
int j;
|
||||
|
||||
for (j = 0; j < _ecore_x_xi2_num; j++)
|
||||
{
|
||||
if (_ecore_x_xi2_devs[j].deviceid == dev->attachment)
|
||||
atdev = &(_ecore_x_xi2_devs[j]);
|
||||
}
|
||||
if (((atdev) && (atdev->use != XIMasterPointer)) ||
|
||||
(!atdev))
|
||||
{
|
||||
XIEventMask eventmask;
|
||||
unsigned char mask[4] = { 0 };
|
||||
|
@ -246,19 +257,20 @@ ecore_x_input_multi_select(Ecore_X_Window win)
|
|||
XISetMask(mask, XI_ButtonPress);
|
||||
XISetMask(mask, XI_ButtonRelease);
|
||||
XISetMask(mask, XI_Motion);
|
||||
#ifdef XI_TouchUpdate
|
||||
# ifdef XI_TouchUpdate
|
||||
XISetMask(mask, XI_TouchUpdate);
|
||||
#endif
|
||||
#ifdef XI_TouchBegin
|
||||
# endif
|
||||
# ifdef XI_TouchBegin
|
||||
XISetMask(mask, XI_TouchBegin);
|
||||
#endif
|
||||
#ifdef XI_TouchEnd
|
||||
# endif
|
||||
# ifdef XI_TouchEnd
|
||||
XISetMask(mask, XI_TouchEnd);
|
||||
#endif
|
||||
# endif
|
||||
XISelectEvents(_ecore_x_disp, win, &eventmask, 1);
|
||||
find = EINA_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return find;
|
||||
#else /* ifdef ECORE_XI2 */
|
||||
|
|
Loading…
Reference in New Issue