From db8bd79aa87118d1037a72752413514e98bc8ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 18 Oct 2024 20:37:26 +0200 Subject: [PATCH] Help mutter finding app info for windows Resolves: RHEL-63000 --- ...cker-Help-mutter-finding-app-info-s-.patch | 56 +++++++++++++++++++ gnome-shell.spec | 7 ++- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 0001-shell-window-tracker-Help-mutter-finding-app-info-s-.patch diff --git a/0001-shell-window-tracker-Help-mutter-finding-app-info-s-.patch b/0001-shell-window-tracker-Help-mutter-finding-app-info-s-.patch new file mode 100644 index 0000000..4a9992f --- /dev/null +++ b/0001-shell-window-tracker-Help-mutter-finding-app-info-s-.patch @@ -0,0 +1,56 @@ +From b1be295de28f45762a525d3ad3f91729295a7511 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jonas=20=C3=85dahl?= +Date: Fri, 18 Oct 2024 13:20:23 +0200 +Subject: [PATCH] shell/window-tracker: Help mutter finding app info's for + windows + +--- + src/shell-window-tracker.c | 25 +++++++++++++++++++++++++ + 1 file changed, 25 insertions(+) + +diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c +index bc14040d9b..8fbcca4269 100644 +--- a/src/shell-window-tracker.c ++++ b/src/shell-window-tracker.c +@@ -651,6 +651,20 @@ shell_window_tracker_on_n_workspaces_changed (MetaWorkspaceManager *workspace_ma + } + } + ++static GAppInfo * ++on_find_app_info (MetaDisplay *display, ++ MetaWindow *window, ++ ShellWindowTracker *tracker) ++{ ++ g_autoptr (ShellApp) app = NULL; ++ ++ app = get_app_for_window (tracker, window); ++ if (!app) ++ return NULL; ++ ++ return g_object_ref (G_APP_INFO (shell_app_get_app_info (app))); ++} ++ + static void + init_window_tracking (ShellWindowTracker *self) + { +@@ -665,6 +679,17 @@ init_window_tracking (ShellWindowTracker *self) + g_signal_connect(display, "window-created", + G_CALLBACK (on_window_created), self); + ++ if (g_signal_lookup ("find-app-info", META_TYPE_DISPLAY)) ++ { ++ g_debug ("Mutter app finding with the help of gnome-shell"); ++ g_signal_connect (display, "find-app-info", ++ G_CALLBACK (on_find_app_info), self); ++ } ++ else ++ { ++ g_debug ("No mutter app finding with the help of gnome-shell"); ++ } ++ + shell_window_tracker_on_n_workspaces_changed (workspace_manager, NULL, self); + } + +-- +2.44.0.501.g19981daefd.dirty + diff --git a/gnome-shell.spec b/gnome-shell.spec index 66c5a60..417a557 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -8,7 +8,7 @@ Name: gnome-shell Version: 40.10 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Window management and application launching for GNOME License: GPLv2+ @@ -69,6 +69,7 @@ Patch59: 0001-extensionSystem-Support-locking-down-extension-insta.patch Patch60: 0001-windowPreview-Override-with-window-icon-if-available.patch Patch61: screencast-bus-name.patch Patch62: fix-inhibit-shortcut-permission.patch +Patch63: 0001-shell-window-tracker-Help-mutter-finding-app-info-s-.patch %define eds_version 3.33.1 %define gnome_desktop_version 3.35.91 @@ -298,6 +299,10 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/evolution-calendar.de %endif %changelog +* Fri Oct 18 2024 Jonas Ådahl - 40.10-22 +- Help mutter finding app info for windows + Resolves: RHEL-63000 + * Wed Jul 10 2024 Florian Müllner - 40.10-21 - Only open portal login in response to user action Resolves: RHEL-39098