diff options
author | Stivvo <stivvo01@gmail.com> | 2020-10-30 23:30:00 +0100 |
---|---|---|
committer | Stivvo <stivvo01@gmail.com> | 2020-10-31 00:01:59 +0100 |
commit | a4d42ea798cec0d71bb350e2986e0fb6bbaa922f (patch) | |
tree | d828e3af9134ad3d2c2463a097e3b302fed26dcd | |
parent | Closemon(), newmon as parameter (diff) | |
parent | Fix crash when unplugging a focused monitor (diff) | |
download | dwl-a4d42ea798cec0d71bb350e2986e0fb6bbaa922f.tar.gz dwl-a4d42ea798cec0d71bb350e2986e0fb6bbaa922f.tar.bz2 dwl-a4d42ea798cec0d71bb350e2986e0fb6bbaa922f.tar.xz dwl-a4d42ea798cec0d71bb350e2986e0fb6bbaa922f.tar.zst dwl-a4d42ea798cec0d71bb350e2986e0fb6bbaa922f.zip |
Focus client on a new monitor before closing
-rw-r--r-- | dwl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |