aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 0432b42..6bbf8b9 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1087,10 +1087,12 @@ focusclient(Client *old, Client *c, int lift)
void
focusmon(const Arg *arg)
{
- Client *sel = selclient();
-
- selmon = dirtomon(arg->i);
- focusclient(sel, focustop(selmon), 1);
+ Client *sel;
+ do {
+ sel = selclient();
+ selmon = dirtomon(arg->i);
+ focusclient(sel, focustop(selmon), 1);
+ } while (!selmon->wlr_output->enabled);
}
void