window-list: Fix .focused styling

Commit 039c66e7b7 wrapped the button in a container to
animate transitions, but didn't adjust the `.focused`
styling to still apply to the button (where it is
expected) rather than the wrapper.

Fix that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/328>
This commit is contained in:
Florian Müllner
2024-07-13 00:11:19 +02:00
parent c302db7545
commit c72b8b2122

View File

@@ -358,9 +358,9 @@ class BaseButton extends DashItemContainer {
_updateStyle() {
if (this._isFocused())
this.add_style_class_name('focused');
this._button.add_style_class_name('focused');
else
this.remove_style_class_name('focused');
this._button.remove_style_class_name('focused');
}
_windowEnteredOrLeftMonitor(_metaDisplay, _monitorIndex, _metaWindow) {