Blame SOURCES/0005-kms-call-LeaveVT-on-shutdown.patch

45aa48
From 35f3ea239227157e97a63b2738be48bcc130c6c8 Mon Sep 17 00:00:00 2001
45aa48
From: Ray Strode <rstrode@redhat.com>
45aa48
Date: Wed, 3 Oct 2018 09:00:40 -0400
45aa48
Subject: [PATCH] kms: call LeaveVT on shutdown
45aa48
45aa48
It's important that LeaveVT is called on shutdown, since
45aa48
the X server will leave the current vt on shutdown.
45aa48
45aa48
This commit adds the required call, and fixes some confusion
45aa48
when one X server is starting at around the same time another
45aa48
X server is shutting down.
45aa48
45aa48
(cherry picked from commit 0f9e801c04f31b0b173ec22725d08122ecbfaea6)
45aa48
---
45aa48
 src/qxl_kms.c | 3 +++
45aa48
 1 file changed, 3 insertions(+)
45aa48
45aa48
diff --git a/src/qxl_kms.c b/src/qxl_kms.c
45aa48
index d11b20e..d098ebf 100644
45aa48
--- a/src/qxl_kms.c
45aa48
+++ b/src/qxl_kms.c
45aa48
@@ -132,6 +132,9 @@ qxl_close_screen_kms (CLOSE_SCREEN_ARGS_DECL)
45aa48
 
45aa48
     result = pScreen->CloseScreen (CLOSE_SCREEN_ARGS);
45aa48
 
45aa48
+    if (pScrn->vtSema)
45aa48
+	pScrn->LeaveVT (VT_FUNC_ARGS);
45aa48
+
45aa48
     return result;
45aa48
 }
45aa48
 
45aa48
-- 
45aa48
2.20.1
45aa48