diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2204,6 +2204,13 @@ iBool handleCommand_App(const char *cmd) { | |||
2204 | swapRoots_MainWindow(d->window); | 2204 | swapRoots_MainWindow(d->window); |
2205 | return iTrue; | 2205 | return iTrue; |
2206 | } | 2206 | } |
2207 | if (argLabel_Command(cmd, "focusother")) { | ||
2208 | iWindow *baseWin = &d->window->base; | ||
2209 | if (baseWin->roots[1]) { | ||
2210 | baseWin->keyRoot = | ||
2211 | (baseWin->keyRoot == baseWin->roots[1] ? baseWin->roots[0] : baseWin->roots[1]); | ||
2212 | } | ||
2213 | } | ||
2207 | d->window->pendingSplitMode = | 2214 | d->window->pendingSplitMode = |
2208 | (argLabel_Command(cmd, "axis") ? vertical_WindowSplit : 0) | (arg_Command(cmd) << 1); | 2215 | (argLabel_Command(cmd, "axis") ? vertical_WindowSplit : 0) | (arg_Command(cmd) << 1); |
2209 | const char *url = suffixPtr_Command(cmd, "url"); | 2216 | const char *url = suffixPtr_Command(cmd, "url"); |