Terminate launched display when closing first screen.

This commit is contained in:
David Reveman 2008-11-11 17:02:09 -05:00
parent 0e937cb11b
commit 893d5ddda9

View file

@ -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);
}