dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit 29bc023ee9641b86680139e87bea671f4c8aed75
parent 64ffb013969bb39dbe03ee67eeb42daa4308a187
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Sun,  1 Mar 2020 22:00:35 +0000

Set _NET_WM_STATE to fullscreen when in monocle mode

Diffstat:
A.dwm.c.swp | 0
Mdwm.c | 6++++--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.dwm.c.swp b/.dwm.c.swp Binary files differ. diff --git a/dwm.c b/dwm.c @@ -1170,12 +1170,14 @@ monocle(Monitor *m) Client *c; for (c = m->clients; c; c = c->next) - if (ISVISIBLE(c)) + if (ISVISIBLE(c)) { n++; + XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32, PropModeReplace, (unsigned char *)&netatom[NetWMFullscreen], 1); + } if (n > 0) /* override layout symbol */ snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); + resize(c, m->wx + m->gappx, m->wy + m->gappx, (m->ww - 2 * c->bw) - 2*m->gappx, (m->wh - 2 * c->bw) - 2*m->gappx, 0); } void