mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
Start devices after windows are initialized.
This fixes the hotplug segfault introduced with the multihead changes and cleans up the code a bit as well.
This commit is contained in:
parent
11d0e2109b
commit
0214d0b96a
4 changed files with 45 additions and 57 deletions
13
dix/events.c
13
dix/events.c
|
|
@ -2501,23 +2501,10 @@ void ReinitializeRootWindow(WindowPtr win, int xoff, int yoff)
|
|||
void
|
||||
DefineInitialRootWindow(WindowPtr win)
|
||||
{
|
||||
DeviceIntPtr pDev = inputInfo.devices;
|
||||
|
||||
#ifdef XEVIE
|
||||
xeviewin = win;
|
||||
#endif
|
||||
|
||||
InitializeSprite(inputInfo.pointer, win);
|
||||
|
||||
while (pDev)
|
||||
{
|
||||
if (DevHasCursor(pDev))
|
||||
{
|
||||
InitializeSprite(pDev, win);
|
||||
((FocusSemaphoresPtr)win->devPrivates[FocusPrivatesIndex].ptr)->enterleave++;
|
||||
}
|
||||
pDev = pDev->next;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue