summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-26 20:55:37 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-26 20:55:37 +0100
commit9da4614928a93109b66dd500af459be5fa9f783c (patch)
tree051f56b10f517179dd1b5e34b85b055815515b55 /dwm.c
parent779c9489a7d2c339e36a80c6432a1f65c8833e01 (diff)
'upgrades, people, upgrades'
Diffstat (limited to 'dwm.c')
-rwxr-xr-x[-rw-r--r--]dwm.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/dwm.c b/dwm.c
index 295fb6e..f3e7926 100644..100755
--- a/dwm.c
+++ b/dwm.c
@@ -1100,12 +1100,8 @@ maprequest(XEvent *e)
void
monocle(Monitor *m)
{
- unsigned int n = 0;
Client *c;
- for (c = m->clients; c; c = c->next)
- if (ISVISIBLE(c))
- 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);
}
@@ -1268,14 +1264,6 @@ resizeclient(Client *c, int x, int y, int w, int h)
c->oldw = c->w; c->w = wc.width = w;
c->oldh = c->h; c->h = wc.height = h;
wc.border_width = c->bw;
- if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
- || &monocle == c->mon->lt[c->mon->sellt]->arrange)
- && !c->isfullscreen && !c->isfloating
- && NULL != c->mon->lt[c->mon->sellt]->arrange) {
- c->w = wc.width += c->bw * 2;
- c->h = wc.height += c->bw * 2;
- wc.border_width = 0;
- }
XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
configure(c);