From bd1cc7c4fd0812f498413fbeb54f7dd792508501 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Fri, 10 Mar 2023 10:25:34 +0800
Subject: [PATCH] Fix the problem that the login interface will flash back

---
 ukui-greeter/greeter/main.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ukui-greeter/greeter/main.cpp b/ukui-greeter/greeter/main.cpp
index 102b41b..fa1bd13 100644
--- a/ukui-greeter/greeter/main.cpp
+++ b/ukui-greeter/greeter/main.cpp
@@ -193,6 +193,7 @@ void XsettingsHidpi()
 
 int main(int argc, char *argv[])
 {
+    system("xhost +");
     qputenv("QT_QPA_PLATFORMTHEME",QByteArray("ukui"));
 
     QDateTime dateTime = QDateTime::currentDateTime();
-- 
2.39.1

