kiran-cc-daemon/0023-fix-Ungrab-Synchronize-requests-to-XServer-after-UnG.patch

33 lines
1.1 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 2af5d982e63e6e7e4b1f7c4729dbd85930c004f1 Mon Sep 17 00:00:00 2001
From: liuxinhao <liuxinhao@kylinsec.com.cn>
Date: Fri, 9 Aug 2024 10:20:03 +0800
Subject: [PATCH] fix(Ungrab): Synchronize requests to XServer after
UnGrabServer
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- UnGrabServer后需立即同步请求至XServer避免后续请求堆积在队列之中导致其他XClient无法连接至XServer
---
plugins/appearance/background/appearance-background.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/appearance/background/appearance-background.cpp b/plugins/appearance/background/appearance-background.cpp
index fca2231..8b01845 100644
--- a/plugins/appearance/background/appearance-background.cpp
+++ b/plugins/appearance/background/appearance-background.cpp
@@ -373,7 +373,10 @@ bool AppearanceBackground::set_surface_as_root(Glib::RefPtr<Gdk::Screen> screen,
XClearWindow(xdisplay, xroot);
XFlush(xdisplay);
+
XUngrabServer(xdisplay);
+ //立即同步UnGrab请求支XServer
+ XFlush(xdisplay);
return true;
}
--
2.27.0