dix: reduce FirstPointerChild complexity
Instead of keeping a flag on each window for the devices that are in this window, keep a local array that holds the current pointer window for each device. Benefit: searching for the first descendant of a pointer is a simple run through the array. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -300,7 +300,6 @@ SetWindowToDefaults(WindowPtr pWin)
|
||||
pWin->redirectDraw = RedirectDrawNone;
|
||||
pWin->forcedBG = FALSE;
|
||||
|
||||
memset(pWin->enterleave, 0, sizeof(pWin->enterleave));
|
||||
memset(pWin->focusinout, 0, sizeof(pWin->focusinout));
|
||||
|
||||
#ifdef ROOTLESS
|
||||
|
||||
Reference in New Issue
Block a user