swaybar: send signal to status when hiding or showing bar

This commit is contained in:
Ian Fan 2018-10-12 20:59:45 +01:00
parent f6f72cb949
commit a29ee77411
3 changed files with 21 additions and 0 deletions

View file

@ -396,6 +396,10 @@ bool determine_bar_visibility(struct swaybar *bar, bool moving_layer) {
destroy_layer_surface(output);
}
}
wlr_log(WLR_DEBUG, "Sending %s signal to status command",
visible ? "cont" : "stop");
kill(bar->status->pid,
visible ? bar->status->cont_signal : bar->status->stop_signal);
}
return visible;
}