diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-11-06 20:58:57 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2021-11-06 20:58:57 -0700 |
| commit | 397d3b11709bde1bfd74bfabdc41f207ea34bc96 (patch) | |
| tree | 288c3f4586f4ff30e5636841454b1e72d2045cc3 /dwm.c | |
| parent | 833075c1d819753412f80f984e3c48db69da158c (diff) | |
updated
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -1477,26 +1477,12 @@ void resizeclient(Client *c, int x, int y, int w, int h) { XWindowChanges wc; - unsigned int n; - Client *nbc; c->oldx = c->x; c->x = wc.x = x; c->oldy = c->y; c->y = wc.y = y; c->oldw = c->w; c->w = wc.width = w; c->oldh = c->h; c->h = wc.height = h; wc.border_width = c->bw; - - for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = nexttiled(nbc->next), n++); - - if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) { - } else { - if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) { - wc.border_width = 0; - c->w = wc.width += c->bw * 2; - c->h = wc.height += c->bw * 2; - } - } - XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); configure(c); XSync(dpy, False); |
