Fix regression in chrome tracking

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/550
This commit is contained in:
Florian Müllner 2025-01-21 18:55:14 +01:00
parent 5aaba5f468
commit 620d3616e2
No known key found for this signature in database
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
From 01f7df1e8a2de1340589dbcd47f98ff6a1744035 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Wed, 15 Jan 2025 12:36:51 +0100
Subject: [PATCH] window-list: Use correct params when re-tracking chrome
Since commit 981e8e42, we temporarily untrack the window-list actor
while in the overview.
However as we don't pass pass the chrome parameters when re-tracking
chrome, the window-list no longer contributes to struts or tracks
fullscreen changes, whoops.
Make sure to pass the original parameters when re-tracking chrome
to restore the expected behavior.
Fixes: 981e8e42 ("window-list: Untrack chrome while in overview")
Closes: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/550
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/379>
---
extensions/window-list/extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index d20e5270..a768d735 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -1029,7 +1029,7 @@ class WindowList extends St.Widget {
this._updateKeyboardAnchor();
},
'hidden', () => {
- Main.layoutManager.trackChrome(this);
+ Main.layoutManager.trackChrome(this, chromeOptions);
this.visible = !this._monitor.inFullscreen;
this._updateKeyboardAnchor();
}, this);
--
2.47.1

View File

@ -20,6 +20,8 @@ License: GPL-2.0-or-later
URL: http://wiki.gnome.org/Projects/GnomeShell/Extensions
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
Patch: 0001-window-list-Use-correct-params-when-re-tracking-chro.patch
BuildRequires: meson
BuildRequires: git
BuildRequires: gettext >= 0.19.6