Bugfix: Change to default mode if there was no client selected

Another bug fixed by having testcases :-)
This commit is contained in:
Michael Stapelberg 2009-08-06 00:15:53 +02:00
parent bc4c321c1b
commit 3005ddf908
1 changed files with 1 additions and 1 deletions

View 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;
}