diff --git a/.gitignore b/.gitignore index a269e6f..1471fb2 100644 --- a/.gitignore +++ b/.gitignore @@ -180,3 +180,4 @@ /gnome-shell-extensions-47.alpha.tar.xz /gnome-shell-extensions-47.rc.tar.xz /gnome-shell-extensions-47.0.tar.xz +/gnome-shell-extensions-47.1.tar.xz diff --git a/gnome-shell-extensions.spec b/gnome-shell-extensions.spec index 92fdca0..de77c41 100644 --- a/gnome-shell-extensions.spec +++ b/gnome-shell-extensions.spec @@ -12,7 +12,7 @@ %endif Name: gnome-shell-extensions -Version: 47.0 +Version: 47.1 Release: %autorelease Summary: Modify and extend GNOME Shell functionality and behavior diff --git a/sources b/sources index a4fe250..24b71f9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gnome-shell-extensions-47.0.tar.xz) = 9ba0c4b0fa0a599cf583ee99d09ea5a1e138e6fc140032883b63092b7cc128969da5cc4ca308d448e672321641d6fb6c7652bd0c08067f9e5634b4ff1686f756 +SHA512 (gnome-shell-extensions-47.1.tar.xz) = f825d67000204117cc088f7ef74eab6ea7d49c6360ff124eeeb4d4c66028e74fddc04ff4fd19bc1f9c68bbd6e478be0b5527119c605722be1037e3e8e5ea844e diff --git a/window-list-reordering.patch b/window-list-reordering.patch index 989048e..69705fc 100644 --- a/window-list-reordering.patch +++ b/window-list-reordering.patch @@ -1,95 +1,7 @@ -From 21e087ef90891e703338b00cea0cf38e11feae8f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Florian=20M=C3=BCllner?= -Date: Wed, 25 Sep 2024 03:36:08 +0200 -Subject: [PATCH 01/22] window-list: Small stylesheet cleanup - -The light stylesheet duplicates some declarations, and the -last occurrence matches what we already inherit from the -dark stylesheet. - -Part-of: ---- - extensions/window-list/stylesheet-light.css | 10 ---------- - 1 file changed, 10 deletions(-) - -diff --git a/extensions/window-list/stylesheet-light.css b/extensions/window-list/stylesheet-light.css -index 375fd1bf..f9c51f8e 100644 ---- a/extensions/window-list/stylesheet-light.css -+++ b/extensions/window-list/stylesheet-light.css -@@ -21,21 +21,11 @@ - text-shadow: none; - } - -- .bottom-panel .window-button > StWidget { -- -st-natural-width: 18.7em; -- max-width: 18.75em; -- } -- - .window-button > StWidget { - color: #000; - background-color: transparent; - } - --.window-button > StWidget { -- -st-natural-width: 18.75em; -- max-width: 18.75em; --} -- - .window-button:hover > StWidget { - background-color: st-darken(#eee,5%); - } --- -2.47.0 - - -From 5ac12f0ec7c378e4b65073823b0e03a0e9c219eb Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Florian=20M=C3=BCllner?= -Date: Wed, 25 Sep 2024 02:14:47 +0200 -Subject: [PATCH 02/22] window-list: Don't recreate icons on theme changes - -All icons use `StIcon`, which already updates itself correctly -on icon theme changes. - -Part-of: ---- - extensions/window-list/extension.js | 9 --------- - 1 file changed, 9 deletions(-) - -diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js -index 3edbf8bf..9441fad1 100644 ---- a/extensions/window-list/extension.js -+++ b/extensions/window-list/extension.js -@@ -125,10 +125,6 @@ class WindowTitle extends St.BoxLayout { - this.label_actor.clutter_text.single_line_mode = true; - this.add_child(this.label_actor); - -- this._textureCache = St.TextureCache.get_default(); -- this._textureCache.connectObject('icon-theme-changed', -- () => this._updateIcon(), this); -- - this._metaWindow.connectObject( - 'notify::wm-class', - () => this._updateIcon(), GObject.ConnectFlags.AFTER, -@@ -591,11 +587,6 @@ class AppButton extends BaseButton { - this._appContextMenu.actor.hide(); - Main.uiGroup.add_child(this._appContextMenu.actor); - -- this._textureCache = St.TextureCache.get_default(); -- this._textureCache.connectObject('icon-theme-changed', () => { -- this._icon.child = app.create_icon_texture(ICON_TEXTURE_SIZE); -- }, this); -- - this.app.connectObject('windows-changed', - () => this._windowsChanged(), this); - this._windowsChanged(); --- -2.47.0 - - -From 8c3a3f3b8a625bcfeedcfa367866f37ae9087c72 Mon Sep 17 00:00:00 2001 +From 3c701ae01af9eb1ece8599f715fab3782739832e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 25 Sep 2024 02:23:41 +0200 -Subject: [PATCH 03/22] window-list: Split out AppTitle class +Subject: [PATCH 01/14] window-list: Split out AppTitle class Even though it's just a box with icon and label, it's cleaner to have a dedicated class. @@ -100,7 +12,7 @@ Part-of: Date: Wed, 25 Sep 2024 02:55:14 +0200 -Subject: [PATCH 04/22] window-list: Simplify app button +Subject: [PATCH 02/14] window-list: Simplify app button Depending on the number of windows, the button either shows the title of the lone window, or the app title for multiple windows. @@ -190,7 +102,7 @@ Part-of: -Date: Mon, 7 Oct 2024 17:22:04 +0200 -Subject: [PATCH 05/22] window-list: Fix minimized styling - -Commit 039c66e7b7c wrapped the button in a container to -animate transitions, but didn't adjust the `.minimized` -styling to still apply to the button (where it is -expected) rather than the wrapper. - -Fix this just like commit c72b8b21 did for the -`.focused` styling. - -Part-of: ---- - extensions/window-list/extension.js | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js -index 9b9ea7b9..3a8f612a 100644 ---- a/extensions/window-list/extension.js -+++ b/extensions/window-list/extension.js -@@ -478,9 +478,9 @@ class WindowButton extends BaseButton { - super._updateStyle(); - - if (this.metaWindow.minimized) -- this.add_style_class_name('minimized'); -+ this._button.add_style_class_name('minimized'); - else -- this.remove_style_class_name('minimized'); -+ this._button.remove_style_class_name('minimized'); - } - - _windowEnteredOrLeftMonitor(metaDisplay, monitorIndex, metaWindow) { --- -2.47.0 - - -From ce37919c1e3643363858f67fc749981a0afc1b8d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Florian=20M=C3=BCllner?= -Date: Mon, 7 Oct 2024 17:10:43 +0200 -Subject: [PATCH 06/22] window-list: Fix active state - -Commit c72b8b21 fixed the styling of the active window's button, -but missed that the `active` property uses the style information -as well. - -Adjust it to use the correct actor when checking for the style class. - -Closes https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/529 - -Part-of: ---- - 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 3a8f612a..e7a1c777 100644 ---- a/extensions/window-list/extension.js -+++ b/extensions/window-list/extension.js -@@ -252,7 +252,7 @@ class BaseButton extends DashItemContainer { - } - - get active() { -- return this.has_style_class_name('focused'); -+ return this._button.has_style_class_name('focused'); - } - - // eslint-disable-next-line camelcase --- -2.47.0 - - -From 0c0115c847188838c3132dbba5fc99c7a6052f8e Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Florian=20M=C3=BCllner?= -Date: Tue, 1 Oct 2024 14:52:02 +0200 -Subject: [PATCH 07/22] window-list: Add missing action - -Commit 24ba03fe9 added a new setting, but forgot to create the -corresponding action. - -Part-of: ---- - extensions/window-list/prefs.js | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/extensions/window-list/prefs.js b/extensions/window-list/prefs.js -index 194d1f9d..5da645df 100644 ---- a/extensions/window-list/prefs.js -+++ b/extensions/window-list/prefs.js -@@ -30,6 +30,8 @@ class WindowListPrefsWidget extends Adw.PreferencesPage { - this._settings.create_action('show-on-all-monitors')); - this._actionGroup.add_action( - this._settings.create_action('display-all-workspaces')); -+ this._actionGroup.add_action( -+ this._settings.create_action('embed-previews')); - - const groupingGroup = new Adw.PreferencesGroup({ - title: _('Window Grouping'), --- -2.47.0 - - -From b3401e8354892c82e0198bb8fb4d99210a9fc494 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Florian=20M=C3=BCllner?= -Date: Tue, 1 Oct 2024 14:46:15 +0200 -Subject: [PATCH 08/22] window-list: Remove superfluous bindings - -The setting is already bound to the switch via the corresponding action, -no need to also set up a binding. - -In fact, the second binding is actively harmful, as it keeps the -connection alive until dispose, so the setting is reset on -garbage collection. - -Closes https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/511 - -Part-of: ---- - extensions/window-list/prefs.js | 4 ---- - 1 file changed, 4 deletions(-) - -diff --git a/extensions/window-list/prefs.js b/extensions/window-list/prefs.js -index 5da645df..cf56be5b 100644 ---- a/extensions/window-list/prefs.js -+++ b/extensions/window-list/prefs.js -@@ -75,8 +75,6 @@ class WindowListPrefsWidget extends Adw.PreferencesPage { - action_name: 'window-list.display-all-workspaces', - valign: Gtk.Align.CENTER, - }); -- this._settings.bind('display-all-workspaces', -- toggle, 'active', Gio.SettingsBindFlags.DEFAULT); - row = new Adw.ActionRow({ - title: _('Show windows from all workspaces'), - activatable_widget: toggle, -@@ -88,8 +86,6 @@ class WindowListPrefsWidget extends Adw.PreferencesPage { - action_name: 'window-list.embed-previews', - valign: Gtk.Align.CENTER, - }); -- this._settings.bind('embed-previews', -- toggle, 'active', Gio.SettingsBindFlags.DEFAULT); - row = new Adw.ActionRow({ - title: _('Show workspace previews'), - activatable_widget: toggle, --- -2.47.0 - - -From 101043326755dda2144e9939681e5f6be4ed116d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Florian=20M=C3=BCllner?= -Date: Tue, 1 Oct 2024 14:55:44 +0200 -Subject: [PATCH 09/22] window-list: Switch to Adw.SwitchRow - -libadwaita fixed the actionable implementation of Adw.SwitchRow, -so can use the convenience widget instead of composing our own. - -Part-of: ---- - extensions/window-list/prefs.js | 27 ++++++--------------------- - 1 file changed, 6 insertions(+), 21 deletions(-) - -diff --git a/extensions/window-list/prefs.js b/extensions/window-list/prefs.js -index cf56be5b..0633d590 100644 ---- a/extensions/window-list/prefs.js -+++ b/extensions/window-list/prefs.js -@@ -60,37 +60,22 @@ class WindowListPrefsWidget extends Adw.PreferencesPage { - const miscGroup = new Adw.PreferencesGroup(); - this.add(miscGroup); - -- let toggle = new Gtk.Switch({ -- action_name: 'window-list.show-on-all-monitors', -- valign: Gtk.Align.CENTER, -- }); -- let row = new Adw.ActionRow({ -+ let row = new Adw.SwitchRow({ - title: _('Show on all monitors'), -- activatable_widget: toggle, -+ action_name: 'window-list.show-on-all-monitors', - }); -- row.add_suffix(toggle); - miscGroup.add(row); - -- toggle = new Gtk.Switch({ -- action_name: 'window-list.display-all-workspaces', -- valign: Gtk.Align.CENTER, -- }); -- row = new Adw.ActionRow({ -+ row = new Adw.SwitchRow({ - title: _('Show windows from all workspaces'), -- activatable_widget: toggle, -+ action_name: 'window-list.display-all-workspaces', - }); -- row.add_suffix(toggle); - miscGroup.add(row); - -- toggle = new Gtk.Switch({ -- action_name: 'window-list.embed-previews', -- valign: Gtk.Align.CENTER, -- }); -- row = new Adw.ActionRow({ -+ row = new Adw.SwitchRow({ - title: _('Show workspace previews'), -- activatable_widget: toggle, -+ action_name: 'window-list.embed-previews', - }); -- row.add_suffix(toggle); - miscGroup.add(row); - } - } --- -2.47.0 - - -From 1774cead56dcda6abdce8a1e6427dbeb866d7a0d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Florian=20M=C3=BCllner?= -Date: Tue, 15 Oct 2024 17:48:52 +0200 -Subject: [PATCH 10/22] window-list: Remove outdated style - -A long time ago, the window list used to embed the bottom message -tray, which caused notifications to inherit the window-list's -font style. - -Since that's no longer the case, we have no business in messing -with notification styling, so stop doing that. - -Part-of: ---- - extensions/window-list/stylesheet-dark.css | 4 ---- - 1 file changed, 4 deletions(-) - -diff --git a/extensions/window-list/stylesheet-dark.css b/extensions/window-list/stylesheet-dark.css -index b9087971..f02fca60 100644 ---- a/extensions/window-list/stylesheet-dark.css -+++ b/extensions/window-list/stylesheet-dark.css -@@ -81,7 +81,3 @@ - width: 24px; - height: 24px; - } -- --.notification { -- font-weight: normal; --} --- -2.47.0 - - -From cba87ff1919c3075ee428a73d3870c92cc5e214b Mon Sep 17 00:00:00 2001 +From d5216a406bc7eb74d94dc176e3ea8210e6b1b79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 26 Sep 2024 19:07:11 +0200 -Subject: [PATCH 11/22] window-list: Split out some common code +Subject: [PATCH 03/14] window-list: Split out some common code Adding an app button and adding a window button involves some shared steps, move those to a shared `_addButton()` method. @@ -551,7 +217,7 @@ Part-of: Date: Thu, 3 Oct 2024 17:19:31 +0200 -Subject: [PATCH 12/22] window-list: Split out common TitleWidget class +Subject: [PATCH 04/14] window-list: Split out common TitleWidget class Both app- and window title use the same structure, so add a shared base class. @@ -607,7 +273,7 @@ Part-of: Date: Thu, 3 Oct 2024 17:27:57 +0200 -Subject: [PATCH 13/22] window-list: Add TitleWidget:abstract-label property +Subject: [PATCH 05/14] window-list: Add TitleWidget:abstract-label property When true, the real label is replaced by a more abstract representation. When used as drag actor, the focus is not @@ -732,7 +398,7 @@ Part-of: Date: Wed, 25 Sep 2024 03:20:52 +0200 -Subject: [PATCH 14/22] window-list: Split out `_createTitleActor()` hook +Subject: [PATCH 06/14] window-list: Split out `_createTitleActor()` hook This will allow creating a suitable drag actor that matches the current title. In particular this allows for a drag actor that @@ -806,7 +472,7 @@ Part-of: Date: Wed, 19 Jun 2024 13:01:37 +0200 -Subject: [PATCH 15/22] window-list: Rename XDND related methods and props +Subject: [PATCH 07/14] window-list: Rename XDND related methods and props The window list buttons themselves will become draggable, so include "xdnd" in the existing drag handling to disambiguate @@ -891,7 +557,7 @@ Part-of: Date: Wed, 25 Sep 2024 04:13:25 +0200 -Subject: [PATCH 16/22] window-list: Allow rearranging window buttons +Subject: [PATCH 08/14] window-list: Allow rearranging window buttons We currently sort buttons by the stable sequence to get a persistent and predictable order. However some users want to customize that @@ -968,7 +634,7 @@ Part-of: Date: Thu, 3 Oct 2024 14:18:32 +0200 -Subject: [PATCH 17/22] window-list: Indicate drop target more prominently +Subject: [PATCH 09/14] window-list: Indicate drop target more prominently The drop target is the main focus of the drag operation, so make its styling more prominent. @@ -1290,10 +956,10 @@ index 5fb39b2f..1ecb83a9 100644 2.47.0 -From e8daa4529a03c863588230fbac55bedf4c821ac3 Mon Sep 17 00:00:00 2001 +From 2675b9c856c753a9a7e327263ff04b8ded73a83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 3 Oct 2024 17:05:42 +0200 -Subject: [PATCH 18/22] window-list: Fade out drag source during drag +Subject: [PATCH 10/14] window-list: Fade out drag source during drag During a drag operation, the focus is on the where to drop the dragged item, not to identify it or its origin. @@ -1304,7 +970,7 @@ Part-of: Date: Wed, 9 Oct 2024 19:15:16 +0200 -Subject: [PATCH 19/22] window-list: Shrink drag-actor size during drags +Subject: [PATCH 11/14] window-list: Shrink drag-actor size during drags Like the previous commit, this helps with putting the focus on the target location instead of the dragged item. @@ -1358,7 +1024,7 @@ Part-of: Date: Tue, 8 Oct 2024 19:25:53 +0200 -Subject: [PATCH 20/22] window-list: Handle DND events near the drop target +Subject: [PATCH 12/14] window-list: Handle DND events near the drop target Even with the previous change, the dragged actor has the tendency of obscuring the possible drop target. To alleviate this, handle @@ -1441,7 +1107,7 @@ Part-of: Date: Wed, 26 Jun 2024 00:58:18 +0200 -Subject: [PATCH 21/22] window-list: Add `id` property to buttons +Subject: [PATCH 13/14] window-list: Add `id` property to buttons A string ID that uniquely identifies a button will allow to serialize/deserialize the positions in the next commit. @@ -1512,7 +1178,7 @@ Part-of: Date: Tue, 24 Sep 2024 20:31:06 +0200 -Subject: [PATCH 22/22] window-list: Save and restore positions as runtime +Subject: [PATCH 14/14] window-list: Save and restore positions as runtime state While it doesn't make sense for window list positions to be truly @@ -1562,7 +1228,7 @@ Part-of: