diff --git a/0001-feature-backends-Compatible-wayland-framework-which-.patch b/0001-feature-backends-Compatible-wayland-framework-which-.patch new file mode 100644 index 0000000000000000000000000000000000000000..d44ccda7382674c32976a91f0dd68d1f00920207 --- /dev/null +++ b/0001-feature-backends-Compatible-wayland-framework-which-.patch @@ -0,0 +1,45 @@ +From 0a5111bbf17039cf1106d7fc6361305538fbe81a Mon Sep 17 00:00:00 2001 +From: tangjie02 +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 +--- + 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 + diff --git a/kiran-panel-1.22.3.tar.gz b/kiran-panel-1.22.3.tar.gz deleted file mode 100644 index a45d491616a3ef923c5ee523dd8f30e671f2c969..0000000000000000000000000000000000000000 Binary files a/kiran-panel-1.22.3.tar.gz and /dev/null differ diff --git a/kiran-panel.spec b/kiran-panel.spec index 45346531868916b3d567893bdd72c1019527e18f..1dc5da83ba82d367828be019e98a34bcdddc754b 100644 --- a/kiran-panel.spec +++ b/kiran-panel.spec @@ -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 - 1.22.4-3.kb3 +- Compatible wayland framework which exists xwayland. + * Wed Aug 10 2022 luoqing - 1.22.4-3.kb2 - KYOS-F: Modify license and add yaml file.