aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r--swaybar/bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 15eab782..18b87e6d 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -172,7 +172,7 @@ bool determine_bar_visibility(struct swaybar *bar, bool moving_layer) {
if (bar->status) {
sway_log(SWAY_DEBUG, "Sending %s signal to status command",
visible ? "cont" : "stop");
- kill(bar->status->pid, visible ?
+ kill(-bar->status->pid, visible ?
bar->status->cont_signal : bar->status->stop_signal);
}
}