Compatible wayland framework which exists xwayland.

Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
This commit is contained in:
tangjie02 2023-02-07 13:41:35 +08:00
parent f095d0eddc
commit d5a475b7ee
3 changed files with 51 additions and 1 deletions

View File

@ -0,0 +1,45 @@
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

Binary file not shown.

View File

@ -11,13 +11,15 @@
Name: kiran-panel
Version: 1.22.4
Release: 3.kb2
Release: 3.kb3
Summary: KIRAN Desktop panel and applets
License: GPL-2.0-or-later
URL: http://mate-desktop.org
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-feature-backends-Compatible-wayland-framework-which-.patch
#kylin
Obsoletes: mintmenu
#endkylin
@ -129,6 +131,9 @@ desktop-file-install \
%changelog
* Tue Feb 07 2023 tangjie02 <tangjie02@kylinsec.com.cn> - 1.22.4-3.kb3
- Compatible wayland framework which exists xwayland.
* Wed Aug 10 2022 luoqing <luoqing@kylinsec.com.cn> - 1.22.4-3.kb2
- KYOS-F: Modify license and add yaml file.