mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: send signal to status when hiding or showing bar
This commit is contained in:
parent
f6f72cb949
commit
a29ee77411
3 changed files with 21 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue