dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 62fb4c086ea5080977edc4ec017390aa924607ed
parent 388ab9df2f655e7bd228b98ccf48ab612c0ffe4e
Author: Stivvo <stivvo01@gmail.com>
Date:   Fri, 30 Oct 2020 23:49:01 +0100

Block access to disabled monitor

Before this, pressing mod+comma or mod+period (focusmon function) moved
the focus to disabed monitors. Now, all disabled monitors are skipped

Diffstat:
Mdwl.c | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 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