summaryrefslogtreecommitdiff
path: root/dwm/exresize.c
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-08 15:21:28 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-03-08 15:21:28 +0900
commit4437d5b3c3eea76f6e2b0fd4a2ba21c02a098aeb (patch)
treee8dcb20bf144aacf88f93b012dccacdeb08015cd /dwm/exresize.c
parentc2b06f0d5795a789f4ddab459179ff89aedfee98 (diff)
updates
Diffstat (limited to 'dwm/exresize.c')
-rw-r--r--dwm/exresize.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dwm/exresize.c b/dwm/exresize.c
index e3f0424..d0a1e9e 100644
--- a/dwm/exresize.c
+++ b/dwm/exresize.c
@@ -41,26 +41,26 @@ exresize(const Arg *arg) {
ny = c->y - y/2;
if (!((abs(c->x + c->w/2 - (selmon->wx + selmon->ww/2)) < snap))) {
- if ((nw == selmon->ww) ||
+ if ((nw == selmon->ww) ||
(nx < selmon->wx) ||
(abs(selmon->wx - c->x) < snap))
nx = selmon->wx;
- else if ((nx+nw > (selmon->wx + selmon->ww)) ||
+ else if ((nx+nw > (selmon->wx + selmon->ww)) ||
(abs((selmon->wx + selmon->ww) - (c->x + c->w)) < snap))
nx = (selmon->wx + selmon->ww) - nw - c->bw*2;
- } else
+ } else
nx = selmon->wx + selmon->ww/2 - nw/2;
if (!((abs(c->y + c->h/2 - (selmon->wy + selmon->wh/2)) < snap))) {
- if ((nh == selmon->wh) ||
+ if ((nh == selmon->wh) ||
(ny < selmon->wy) ||
(abs(selmon->wy - c->y) < snap))
ny = selmon->wy;
else if ((ny+nh > (selmon->wy + selmon->wh)) ||
(abs((selmon->wy + selmon->wh) - (c->y + c->h)) < snap))
ny = (selmon->wy + selmon->wh) - nh - c->bw*2;
- } else
+ } else
ny = selmon->wy + selmon->wh/2 - nh/2;