From: Thorsten Töpper Date: Fri, 5 Mar 2010 22:09:51 +0000 (+0100) Subject: Changing to stacking/tabbing toggles mode to default if already in stacking/tiling. X-Git-Tag: 3.e~6^2~113 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e9c6515f3788577a284ad126569f54b8832545d;p=i3%2Fi3 Changing to stacking/tabbing toggles mode to default if already in stacking/tiling. --- diff --git a/src/commands.c b/src/commands.c index 4317b36f..e4e944b7 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1036,9 +1036,9 @@ void parse_command(xcb_connection_t *conn, const char *command) { } LOG("Switching mode for current container\n"); int new_mode = MODE_DEFAULT; - if (command[0] == 's') + if (command[0] == 's' && CUR_CELL->mode != MODE_STACK) new_mode = MODE_STACK; - if (command[0] == 'T') + if (command[0] == 'T' && CUR_CELL->mode != MODE_TABBED) new_mode = MODE_TABBED; switch_layout_mode(conn, CUR_CELL, new_mode); return;