mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-19 00:51:16 +00:00
Xext: add GEDeviceMaskIsSet (GE mask checking per device)
If a mask was set for the NULL device, then we pretend the mask is set for all devices.
This commit is contained in:
parent
91dc8c43d2
commit
379f057646
3 changed files with 38 additions and 3 deletions
|
|
@ -2151,7 +2151,7 @@ DeliverEventsToWindow(DeviceIntPtr pDev, WindowPtr pWin, xEvent
|
|||
|
||||
/* if we get here, filter should be set to the GE specific mask.
|
||||
check if any client wants it */
|
||||
if (!GEMaskIsSet(pWin, GEEXT(pEvents), filter))
|
||||
if (!GEDeviceMaskIsSet(pWin, pDev, GEEXT(pEvents), filter))
|
||||
return 0;
|
||||
|
||||
/* run through all clients, deliver event */
|
||||
|
|
@ -2471,7 +2471,7 @@ DeliverDeviceEvents(WindowPtr pWin, xEvent *xE, GrabPtr grab,
|
|||
|
||||
while(win)
|
||||
{
|
||||
if (GEMaskIsSet(win, GEEXT(xE), filter))
|
||||
if (GEDeviceMaskIsSet(win, dev, GEEXT(xE), filter))
|
||||
{
|
||||
if (GEExtensions[GEEXTIDX(xE)].evfill)
|
||||
GEExtensions[GEEXTIDX(xE)].evfill(ge, dev, win, grab);
|
||||
|
|
|
|||
Loading…
Reference in a new issue