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:
Peter Hutterer 2007-05-01 15:49:41 +09:30
commit 0214d0b96a
4 changed files with 45 additions and 57 deletions

View file

@ -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