commit b516ecd0cecd38288912e90b33582e0cebe710b4
parent 9d1e12ba336ba76cdc34940a1d007e60a6aeb20e
Author: Hayden Hamilton <hayden@haydenvh.com>
Date: Tue, 10 Mar 2020 19:40:12 +0000
Rolling back the fullscreen netatom for monocle
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -1170,12 +1170,10 @@ 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);
+ snprintf(m->ltsymbol, sizeof m->ltsymbol, "[M%d]", n);
for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
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);
}