commit a4d42ea798cec0d71bb350e2986e0fb6bbaa922f
parent d4178b9d2a89c24b99e2b26aec8ac15ab5dcdd84
Author: Stivvo <stivvo01@gmail.com>
Date: Fri, 30 Oct 2020 23:30:00 +0100
Focus client on a new monitor before closing
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/dwl.c b/dwl.c
@@ -706,6 +706,7 @@ closemon(Monitor *m, Monitor *newmon)
// move all the clients on a closed monitor to another one
Client *c;
+ focusclient(selclient(), focustop(dirtomon(-1)), 1);
wl_list_for_each(c, &clients, link) {
if (c->isfloating && c->geom.x > m->m.width)
resize(c, c->geom.x - m->w.width, c->geom.y,