]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: If hide-on-modifier is set, stop the child after starting
authorAxel Wagner <mail@merovius.de>
Thu, 6 Jan 2011 16:35:23 +0000 (17:35 +0100)
committerAxel Wagner <mail@merovius.de>
Thu, 6 Jan 2011 16:35:23 +0000 (17:35 +0100)
i3bar/src/child.c

index 4854118506a55695bbbac7f457efd241f19dab06..d7d557831371ab11204e1ccfbf325dedf6a754ca 100644 (file)
@@ -132,6 +132,10 @@ void start_child(char *command) {
 
                 dup2(fd[0], STDIN_FILENO);
 
+                /* If hide-on-modifier is set, we start of by sending the
+                 * child a SIGSTOP, because the bars aren't mapped at start */
+                stop_child();
+
                 break;
         }
     }