commit 94c8bd604870365bc201524b63158623e6f32a8f
parent c60f65195186e6c72ec66ba7f10139a420a595a0
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date: Fri, 9 Dec 2022 20:55:58 -0600
get `sel` from focustop() in focusstack()
Fixes: https://github.com/djpohly/dwl/issues/354
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {