From 94c8bd604870365bc201524b63158623e6f32a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Fri, 9 Dec 2022 20:55:58 -0600 Subject: get `sel` from focustop() in focusstack() Fixes: https://github.com/djpohly/dwl/issues/354 --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3