dwl

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

commit 618972696de9499fa38b613a47799cf46b2b0135
parent 7d67b77a96260aa07d47a6d7ef414be1daa414b4
Author: Stivvo <stivvo01@gmail.com>
Date:   Fri, 30 Oct 2020 19:52:20 +0100

Fix crash when unplugging a focused monitor

Just focus a "safe" monitor before trying to to anything risky

Diffstat:
Mdwl.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/dwl.c b/dwl.c @@ -707,6 +707,7 @@ closemon(Monitor *m) Monitor *newmon; Client *c; + focusclient(selclient(), focustop(dirtomon(-1)), 1); wl_list_for_each(newmon, &mons, link) { wl_list_for_each(c, &clients, link) { if (c->isfloating && c->geom.x > m->m.width)