mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(workspaces): add class to persistant workspaces
This commit is contained in:
parent
a37b4687ff
commit
c2e9ed6091
@ -154,6 +154,11 @@ auto Workspaces::update() -> void {
|
||||
} else {
|
||||
button.get_style_context()->remove_class("urgent");
|
||||
}
|
||||
if ((*it)["target_output"].isString()) {
|
||||
button.get_style_context()->add_class("persistant");
|
||||
} else {
|
||||
button.get_style_context()->remove_class("persistant");
|
||||
}
|
||||
if (needReorder) {
|
||||
box_.reorder_child(button, it - workspaces_.begin());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user