]> git.mdlowis.com Git - proto/labwc.git/commitdiff
action: Switch to next window when pressing Alt-Tab once
authorJohn Lindgren <john@jlindgren.net>
Sat, 4 Dec 2021 15:06:21 +0000 (10:06 -0500)
committerARDiDo <90479315+ARDiDo@users.noreply.github.com>
Sat, 4 Dec 2021 17:24:47 +0000 (12:24 -0500)
In OpenBox (as in most other stacking window managers), pressing
Alt-Tab once will cycle to the next window.  This is especially
convenient in workflows which require switching back and forth
frequently between the two top windows.

src/action.c

index 692d9f21ebc76b3833b598e2f5711f1c20ade222..1d10b9bc09f8b5ac638b750e6824445712bd21ac 100644 (file)
@@ -52,7 +52,7 @@ action(struct view *activator, struct server *server, const char *action, const
                view_snap_to_edge(activator_or_focused_view(activator, server), command);
        } else if (!strcasecmp(action, "NextWindow")) {
                server->cycle_view =
-                       desktop_cycle_view(server, server->cycle_view, LAB_CYCLE_DIR_NONE);
+                       desktop_cycle_view(server, server->cycle_view, LAB_CYCLE_DIR_FORWARD);
                osd_update(server);
        } else if (!strcasecmp(action, "Reconfigure")) {
                spawn_async_no_shell("killall -SIGHUP labwc");