|
|
@ -155,10 +155,12 @@ bool determine_bar_visibility(struct swaybar *bar, bool moving_layer) {
|
|
|
|
if (visible != bar->visible) {
|
|
|
|
if (visible != bar->visible) {
|
|
|
|
bar->visible = visible;
|
|
|
|
bar->visible = visible;
|
|
|
|
|
|
|
|
|
|
|
|
wlr_log(WLR_DEBUG, "Sending %s signal to status command",
|
|
|
|
if (bar->status) {
|
|
|
|
visible ? "cont" : "stop");
|
|
|
|
wlr_log(WLR_DEBUG, "Sending %s signal to status command",
|
|
|
|
kill(bar->status->pid,
|
|
|
|
visible ? "cont" : "stop");
|
|
|
|
visible ? bar->status->cont_signal : bar->status->stop_signal);
|
|
|
|
kill(bar->status->pid, visible ?
|
|
|
|
|
|
|
|
bar->status->cont_signal : bar->status->stop_signal);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return visible;
|
|
|
|
return visible;
|
|
|
|