summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/uxa/uxa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uxa/uxa.c b/src/uxa/uxa.c
index 2635b502..c8d79002 100644
--- a/src/uxa/uxa.c
+++ b/src/uxa/uxa.c
@@ -382,6 +382,7 @@ static Bool uxa_close_screen(CLOSE_SCREEN_ARGS_DECL)
uxa_glyphs_fini(screen);
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,15,99,903,0)
if (screen->devPrivate) {
/* Destroy the pixmap created by miScreenInit() *before*
* chaining up as we finalize ourselves here and so this
@@ -391,6 +392,7 @@ static Bool uxa_close_screen(CLOSE_SCREEN_ARGS_DECL)
(void) (*screen->DestroyPixmap) (screen->devPrivate);
screen->devPrivate = NULL;
}
+#endif
screen->CreateGC = uxa_screen->SavedCreateGC;
screen->CloseScreen = uxa_screen->SavedCloseScreen;