diff options
author | Ryan Dwyer <RyanDwyer@users.noreply.github.com> | 2018-08-02 23:05:49 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 23:05:49 +1000 |
commit | 706c0fbe2376e15f8140be60f3c8b0713128ebba (patch) | |
tree | ffefcdd261970549f8b83adae8d93b6c3b9ebbbb /sway/config/bar.c | |
parent | swaynag: don't drop \n for first line (diff) | |
parent | Merge pull request #2404 from RyanDwyer/move-containers-when-workspace-focused (diff) | |
download | sway-706c0fbe2376e15f8140be60f3c8b0713128ebba.tar.gz sway-706c0fbe2376e15f8140be60f3c8b0713128ebba.tar.zst sway-706c0fbe2376e15f8140be60f3c8b0713128ebba.zip |
Merge branch 'master' into nagbar
Diffstat (limited to 'sway/config/bar.c')
-rw-r--r-- | sway/config/bar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c index 3a74331e..ae9383d6 100644 --- a/sway/config/bar.c +++ b/sway/config/bar.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <sys/stat.h> | 10 | #include <sys/stat.h> |
11 | #include <signal.h> | 11 | #include <signal.h> |
12 | #include <strings.h> | 12 | #include <strings.h> |
13 | #include <signal.h> | ||
13 | #include "sway/config.h" | 14 | #include "sway/config.h" |
14 | #include "stringop.h" | 15 | #include "stringop.h" |
15 | #include "list.h" | 16 | #include "list.h" |
@@ -175,6 +176,9 @@ void invoke_swaybar(struct bar_config *bar) { | |||
175 | if (bar->pid == 0) { | 176 | if (bar->pid == 0) { |
176 | setpgid(0, 0); | 177 | setpgid(0, 0); |
177 | close(filedes[0]); | 178 | close(filedes[0]); |
179 | sigset_t set; | ||
180 | sigemptyset(&set); | ||
181 | sigprocmask(SIG_SETMASK, &set, NULL); | ||
178 | 182 | ||
179 | // run custom swaybar | 183 | // run custom swaybar |
180 | size_t len = snprintf(NULL, 0, "%s -b %s", | 184 | size_t len = snprintf(NULL, 0, "%s -b %s", |