46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From 0a5111bbf17039cf1106d7fc6361305538fbe81a Mon Sep 17 00:00:00 2001
|
||
From: tangjie02 <tangjie02@kylinsec.com.cn>
|
||
Date: Mon, 6 Feb 2023 20:14:18 +0800
|
||
Subject: [PATCH] feature(backends): Compatible wayland framework which exists
|
||
xwayland.
|
||
MIME-Version: 1.0
|
||
Content-Type: text/plain; charset=UTF-8
|
||
Content-Transfer-Encoding: 8bit
|
||
|
||
- 让kiran-panel能够在wayland模式下运行。指定kiran-panel的后端为x11,这样kiran-panel会跟xwayland进行交互,确保功能可正常使用
|
||
|
||
Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
|
||
---
|
||
libmate-panel-applet/mate-panel-applet.h | 1 +
|
||
mate-panel/main.c | 2 ++
|
||
2 files changed, 3 insertions(+)
|
||
|
||
diff --git a/libmate-panel-applet/mate-panel-applet.h b/libmate-panel-applet/mate-panel-applet.h
|
||
index d146c93..ee65308 100644
|
||
--- a/libmate-panel-applet/mate-panel-applet.h
|
||
+++ b/libmate-panel-applet/mate-panel-applet.h
|
||
@@ -154,6 +154,7 @@ int main(int argc, char* argv[]) \
|
||
int retval; \
|
||
\
|
||
_MATE_PANEL_APPLET_SETUP_GETTEXT (TRUE); \
|
||
+ gdk_set_allowed_backends("x11"); \
|
||
\
|
||
context = g_option_context_new(""); \
|
||
g_option_context_add_group (context, gtk_get_option_group(TRUE)); \
|
||
diff --git a/mate-panel/main.c b/mate-panel/main.c
|
||
index cf2f1f4..d8174c6 100644
|
||
--- a/mate-panel/main.c
|
||
+++ b/mate-panel/main.c
|
||
@@ -81,6 +81,8 @@ main (int argc, char **argv)
|
||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||
textdomain (GETTEXT_PACKAGE);
|
||
|
||
+ gdk_set_allowed_backends("x11");
|
||
+
|
||
/* We will register explicitly when we're ready -- see panel-session.c */
|
||
egg_sm_client_set_mode (EGG_SM_CLIENT_MODE_DISABLED);
|
||
|
||
--
|
||
2.36.1
|
||
|