diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-25 18:04:23 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-11-25 18:04:23 +0200 |
commit | afe1bf47cbc2fa1d437f50e68a771eb23e8891f0 (patch) | |
tree | febc55065d42640d6e413485bee0d40b50b3984c /src/app.c | |
parent | dfefb9bf34e607cdc3a4def6049f3fd0816d5496 (diff) |
Unsplit button in toolbar
IssueID #378
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"); |