diff options
Diffstat (limited to 'sway/config/bar.c')
-rw-r--r-- | sway/config/bar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c index 767534a6..a8389244 100644 --- a/sway/config/bar.c +++ b/sway/config/bar.c | |||
@@ -91,7 +91,7 @@ struct bar_config *default_bar_config(void) { | |||
91 | } | 91 | } |
92 | bar->outputs = NULL; | 92 | bar->outputs = NULL; |
93 | bar->position = strdup("bottom"); | 93 | bar->position = strdup("bottom"); |
94 | bar->pango_markup = false; | 94 | bar->pango_markup = PANGO_MARKUP_DEFAULT; |
95 | bar->swaybar_command = NULL; | 95 | bar->swaybar_command = NULL; |
96 | bar->font = NULL; | 96 | bar->font = NULL; |
97 | bar->height = 0; | 97 | bar->height = 0; |
@@ -217,6 +217,9 @@ static void invoke_swaybar(struct bar_config *bar) { | |||
217 | sigset_t set; | 217 | sigset_t set; |
218 | sigemptyset(&set); | 218 | sigemptyset(&set); |
219 | sigprocmask(SIG_SETMASK, &set, NULL); | 219 | sigprocmask(SIG_SETMASK, &set, NULL); |
220 | signal(SIGPIPE, SIG_DFL); | ||
221 | |||
222 | restore_nofile_limit(); | ||
220 | 223 | ||
221 | pid = fork(); | 224 | pid = fork(); |
222 | if (pid < 0) { | 225 | if (pid < 0) { |
@@ -253,7 +256,6 @@ static void invoke_swaybar(struct bar_config *bar) { | |||
253 | } | 256 | } |
254 | 257 | ||
255 | sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id); | 258 | sway_log(SWAY_DEBUG, "Spawned swaybar %s", bar->id); |
256 | return; | ||
257 | } | 259 | } |
258 | 260 | ||
259 | void load_swaybar(struct bar_config *bar) { | 261 | void load_swaybar(struct bar_config *bar) { |