diff options
| author | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-12-31 22:55:01 +0000 |
|---|---|---|
| committer | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-12-31 22:55:01 +0000 |
| commit | 0eb007773521b22bb263845e7ab88f7ce372f2f9 (patch) | |
| tree | 9e7c5258d999235a1d3cb7100eab08b86d0380b1 | |
| parent | f9bc705314a667085c12784d23ab8a4192d18c3f (diff) | |
fix fullscreen client in tagmon
| -rw-r--r-- | dwm.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1924,9 +1924,17 @@ tag(const Arg *arg) void tagmon(const Arg *arg) { - if (!selmon->sel || !mons->next) + Client *c = selmon->sel; + if (!c || !mons->next) return; - sendmon(selmon->sel, dirtomon(arg->i)); + if (c->isfullscreen) { + c->isfullscreen = 0; + sendmon(c, dirtomon(arg->i)); + c->isfullscreen = 1; + resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh); + XRaiseWindow(dpy, c->win); + } else + sendmon(c, dirtomon(arg->i)); } void |
