diff --git a/0001-fix-tray-Fix-the-icon-location-error-when-system-res.patch b/0001-fix-tray-Fix-the-icon-location-error-when-system-res.patch new file mode 100644 index 0000000..f39bb8a --- /dev/null +++ b/0001-fix-tray-Fix-the-icon-location-error-when-system-res.patch @@ -0,0 +1,33 @@ +From b2dc162c8ebaea927582a423b7467fd00023ab98 Mon Sep 17 00:00:00 2001 +From: wangxiaoqing +Date: Tue, 30 Aug 2022 11:22:55 +0800 +Subject: [PATCH] fix(tray):Fix the icon location error when system resolution + change +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- 修复托盘区域获取托盘位置图标,更改分辨率后错误问题 + Releated #I5O77O + +Signed-off-by: wangxiaoqing +--- + src/tray/kiran-tray.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/tray/kiran-tray.c b/src/tray/kiran-tray.c +index 2e7d1b9..c169a1e 100644 +--- a/src/tray/kiran-tray.c ++++ b/src/tray/kiran-tray.c +@@ -992,7 +992,7 @@ get_widget_geometry(GtkWidget *widget) + { + window = gtk_widget_get_window(parent); + { +- gdk_window_get_position(window, &x, &y); ++ gdk_window_get_origin(window, &x, &y); + } + parent = gtk_widget_get_parent(parent); + } +-- +2.36.1 + diff --git a/kiran-menu.spec b/kiran-menu.spec index aa6440c..976d39e 100644 --- a/kiran-menu.spec +++ b/kiran-menu.spec @@ -1,6 +1,6 @@ Name: kiran-menu Version: 2.3.0 -Release: 8 +Release: 9 Summary: Applets for mate panel from Kiran Desktop License: MulanPSL-2.0 @@ -14,6 +14,7 @@ Patch1004: 0001-fix-connect-Fix-some-possible-crash-problems-caused-.patch Patch1005: 0002-fix-coredump-Fix-the-coredump-problem-caused-by-null.patch Patch1006: 0001-fix-coredump-Fix-the-coredump-problem-caused-by-Rece.patch Patch1007: 0002-feature-gitlab-Add-.gitlab-ci.yml.patch +Patch1008: 0001-fix-tray-Fix-the-icon-location-error-when-system-res.patch BuildRequires: cmake > 3.0 @@ -94,6 +95,9 @@ gtk-update-icon-cache -f /usr/share/icons/hicolor/ %changelog +* Tue Aug 30 2022 wangxiaoqing - 2.3.0-9 +- KYOS-B: Fix the icon location error when system resolution change. + * Thu Aug 25 2022 tangjie02 - 2.3.0-8 - KYOS-B: Fix the coredump problem caused by RecentFilesListBox::load