mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 23:20:12 +01:00
Terminate launched display when closing first screen.
This commit is contained in:
parent
0e937cb11b
commit
893d5ddda9
1 changed files with 4 additions and 0 deletions
|
|
@ -60,6 +60,7 @@
|
|||
#include "dmxatom.h"
|
||||
#include "dmxshm.h"
|
||||
#include "dmxdnd.h"
|
||||
#include "dmxlaunch.h"
|
||||
|
||||
#ifdef PANORAMIX
|
||||
#include "panoramiX.h"
|
||||
|
|
@ -1405,6 +1406,9 @@ Bool dmxCloseScreen(int idx, ScreenPtr pScreen)
|
|||
dmxScreen->bePixmapFormats = NULL;
|
||||
}
|
||||
|
||||
if (idx == 0)
|
||||
dmxAbortDisplay ();
|
||||
|
||||
DMX_UNWRAP(CloseScreen, dmxScreen, pScreen);
|
||||
return pScreen->CloseScreen(idx, pScreen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue