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

View File

@ -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());
}