From: Michael Stapelberg Date: Wed, 5 Aug 2009 22:15:53 +0000 (+0200) Subject: Bugfix: Change to default mode if there was no client selected X-Git-Tag: 3.c~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35d811db82a0215556ac82a60477fa3574d1867f;p=i3%2Fi3 Bugfix: Change to default mode if there was no client selected Another bug fixed by having testcases :-) --- diff --git a/src/commands.c b/src/commands.c index fce3ae65..670d1cb8 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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; }