fix(workspaces): proper order workspace

This commit is contained in:
Alexis
2018-08-09 11:12:46 +02:00
parent b987668f97
commit 4659f04454
2 changed files with 15 additions and 15 deletions

View File

@ -85,6 +85,7 @@ void waybar::modules::WorkspaceSelector::_addWorkspace(Json::Value node)
ipc_single_command(_ipcSocketfd, IPC_COMMAND, value.c_str(), &size);
});
_box->pack_start(button, false, false, 0);
_box->reorder_child(button, node["num"].asInt() - 1);
if (node["focused"].asBool()) {
button.get_style_context()->add_class("current");
}