mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-15 19:22:22 +00:00
Issue CloseDownDevices() in os/log.c and remove from dix/main.c.
This ensures that all calls to FatalError() will shutdown the input devices.
This commit is contained in:
parent
ca2874b273
commit
33ff4cec5f
2 changed files with 2 additions and 5 deletions
|
|
@ -415,7 +415,6 @@ main(int argc, char *argv[], char *envp[])
|
|||
defaultFontPath);
|
||||
}
|
||||
if (!SetDefaultFont(defaultTextFont)) {
|
||||
CloseDownDevices();
|
||||
FatalError("could not open default font '%s'", defaultTextFont);
|
||||
}
|
||||
#ifdef NULL_ROOT_CURSOR
|
||||
|
|
@ -425,13 +424,11 @@ main(int argc, char *argv[], char *envp[])
|
|||
cm.yhot = 0;
|
||||
|
||||
if (!(rootCursor = AllocCursor(NULL, NULL, &cm, 0, 0, 0, 0, 0, 0))) {
|
||||
CloseDownDevices();
|
||||
FatalError("could not create empty root cursor");
|
||||
}
|
||||
AddResource(FakeClientID(0), RT_CURSOR, (pointer)rootCursor);
|
||||
#else
|
||||
if (!(rootCursor = CreateRootCursor(defaultCursorFont, 0))) {
|
||||
CloseDownDevices();
|
||||
FatalError("could not open default cursor font '%s'",
|
||||
defaultCursorFont);
|
||||
}
|
||||
|
|
@ -459,14 +456,12 @@ main(int argc, char *argv[], char *envp[])
|
|||
#ifdef PANORAMIX
|
||||
if (!noPanoramiXExtension) {
|
||||
if (!PanoramiXCreateConnectionBlock()) {
|
||||
CloseDownDevices();
|
||||
FatalError("could not create connection block info");
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
if (!CreateConnectionBlock()) {
|
||||
CloseDownDevices();
|
||||
FatalError("could not create connection block info");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue