File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ struct swaybar_config {
18
18
std::string id;
19
19
std::string mode;
20
20
std::string hidden_state;
21
- std::string position;
22
21
};
23
22
24
23
/* *
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ struct swaybar_config parseConfig(const Json::Value& payload) {
43
43
if (auto hs = payload[" hidden_state" ]; hs.isString ()) {
44
44
conf.hidden_state = hs.asString ();
45
45
}
46
- if (auto position = payload[" position" ]; position.isString ()) {
47
- conf.position = position.asString ();
48
- }
49
46
return conf;
50
47
}
51
48
@@ -80,13 +77,17 @@ void BarIpcClient::onIpcEvent(const struct Ipc::ipc_response& res) {
80
77
}
81
78
82
79
void BarIpcClient::onConfigUpdate (const swaybar_config& config) {
83
- spdlog::info (" config update: {} {} {}" , config.id , config.mode , config.position );
80
+ spdlog::info (" config update for {}: id {}, mode {}, hidden_state {}" ,
81
+ bar_.bar_id ,
82
+ config.id ,
83
+ config.mode ,
84
+ config.hidden_state );
84
85
bar_config_ = config;
85
86
update ();
86
87
}
87
88
88
89
void BarIpcClient::onVisibilityUpdate (bool visible_by_modifier) {
89
- spdlog::trace (" visiblity update: {}" , visible_by_modifier);
90
+ spdlog::debug (" visiblity update for {} : {}" , bar_. bar_id , visible_by_modifier);
90
91
visible_by_modifier_ = visible_by_modifier;
91
92
update ();
92
93
}
You can’t perform that action at this time.
0 commit comments