Skip to content

Commit

Permalink
Fix peristent class on buttons
Browse files Browse the repository at this point in the history
Fixes: Alexays#3009

Signed-off-by: Jo De Boeck <[email protected]>
  • Loading branch information
grimpy committed Mar 19, 2024
1 parent 2c927de commit 4e2c9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sway/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ auto Workspaces::update() -> void {
} else {
button.get_style_context()->remove_class("urgent");
}
if (hasFlag((*it), "target_output")) {
if ((*it)["target_output"].isString()) {
button.get_style_context()->add_class("persistent");
} else {
button.get_style_context()->remove_class("persistent");
Expand Down

0 comments on commit 4e2c9c3

Please sign in to comment.