blob: 3ce8c2e7de850444cd22e8e88b913995fdb2f7ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/modules/wlr/taskbar.cpp b/src/modules/wlr/taskbar.cpp
index 1234567..abcdefg 100644
--- a/src/modules/wlr/taskbar.cpp
+++ b/src/modules/wlr/taskbar.cpp
@@ -350,8 +350,11 @@ void Task::handle_done() {
button.get_style_context()->remove_class("fullscreen");
}
- if (config_["active-first"].isBool() && config_["active-first"].asBool() && active())
+ if (config_["active-first"].isBool() && config_["active-first"].asBool() && active()) {
tbar_->move_button(button, 0);
+ } else if (config_["active-last"].isBool() && config_["active-last"].asBool() && active()) {
+ tbar_->move_button(button, -1);
+ }
tbar_->dp.emit();
}
|