feat(workspaces): add class to persistant workspaces

This commit is contained in:
Alex 2019-06-11 14:08:48 +02:00
parent a37b4687ff
commit c2e9ed6091
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ auto Workspaces::update() -> void {
} else { } else {
button.get_style_context()->remove_class("urgent"); 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) { if (needReorder) {
box_.reorder_child(button, it - workspaces_.begin()); box_.reorder_child(button, it - workspaces_.begin());
} }