feat(bar): add CSS class for window position

pull/397/head
James Edwards-Jones 2019-07-04 02:02:09 +01:00
parent a6980fca7f
commit 4f3c38c542
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ waybar::Bar::Bar(struct waybar_output* w_output, const Json::Value& w_config)
window.set_name("waybar");
window.set_decorated(false);
window.get_style_context()->add_class(output->name);
window.get_style_context()->add_class(config["position"].asString());
if (config["position"] == "right" || config["position"] == "left") {
height_ = 0;