]> git.sur5r.net Git - i3/i3/commitdiff
Some little style adjustments for badboy’s patch
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Sep 2009 16:48:16 +0000 (18:48 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Sep 2009 16:48:16 +0000 (18:48 +0200)
src/commands.c

index e8a71ac99a27f910750d13a411506a3a384f3ebd..ef400a436fd0fce21a8fadf742134e3b6d5b2cd2 100644 (file)
@@ -909,19 +909,16 @@ void parse_command(xcb_connection_t *conn, const char *command) {
                         return;
                 }
 
-                char com;
+                char com = command[1];
                 if (command[1] == 't') {
                         if (last_focused->titlebar_position == TITLEBAR_TOP &&
-                                last_focused->borderless == false)
+                            !last_focused->borderless)
                             com = 'p';
                         else if (last_focused->titlebar_position == TITLEBAR_OFF &&
-                                last_focused->borderless == false)
+                                 !last_focused->borderless)
                             com = 'b';
-                        else
-                            com = 'n';
+                        else com = 'n';
                 }
-                else
-                    com = command[1];
 
                 client_change_border(conn, last_focused, com);
                 return;