aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-09 20:55:58 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-09 20:55:58 -0600
commit94c8bd604870365bc201524b63158623e6f32a8f (patch)
tree14a89fbefc4df99b2bf55354cc319cb4da7e52ec /dwl.c
parentc60f65195186e6c72ec66ba7f10139a420a595a0 (diff)
get `sel` from focustop() in focusstack()
Fixes: https://github.com/djpohly/dwl/issues/354
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 2f7f2bf..5add915 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1261,7 +1261,7 @@ void
focusstack(const Arg *arg)
{
/* Focus the next or previous client (in tiling order) on selmon */
- Client *c, *sel = selclient();
+ Client *c, *sel = focustop(selmon);
if (!sel || sel->isfullscreen)
return;
if (arg->i > 0) {