aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-10-30 23:30:00 +0100
committerStivvo <stivvo01@gmail.com>2020-10-31 00:01:59 +0100
commita4d42ea798cec0d71bb350e2986e0fb6bbaa922f (patch)
treed828e3af9134ad3d2c2463a097e3b302fed26dcd
parentd4178b9d2a89c24b99e2b26aec8ac15ab5dcdd84 (diff)
parent618972696de9499fa38b613a47799cf46b2b0135 (diff)
Focus client on a new monitor before closing
-rw-r--r--dwl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index f688bf6..8852f8f 100644
--- 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,