From 3ef718d34c42a4f33eacbaa86549f7ac017bfe17 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] 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: (cherry picked from commit a5a92026ac0c58c6382c5d531bd069743bef4160) --- 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 7d76f57b..1a233d78 100644 --- a/extensions/window-list/extension.js +++ b/extensions/window-list/extension.js @@ -223,7 +223,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