]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Change to default mode if there was no client selected
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 5 Aug 2009 22:15:53 +0000 (00:15 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 5 Aug 2009 22:15:53 +0000 (00:15 +0200)
Another bug fixed by having testcases :-)

src/commands.c

index fce3ae65c09ad357bb69b8433c1f925d9a62bc12..670d1cb85f86aba144f44a3ba176d97f24cbef83 100644 (file)
@@ -994,7 +994,7 @@ void parse_command(xcb_connection_t *conn, const char *command) {
 
         /* Is it just 's' for stacking or 'd' for default? */
         if ((command[0] == 's' || command[0] == 'd') && (command[1] == '\0')) {
-                if (last_focused == NULL || client_is_floating(last_focused)) {
+                if (last_focused != NULL && client_is_floating(last_focused)) {
                         LOG("not switching, this is a floating client\n");
                         return;
                 }