Mercurial > gbwm
comparison gbwm.c @ 9:1d9dacd8fe55
The border is now perfectly aligned
author | Atarwn Gard <a@qwa.su> |
---|---|
date | Mon, 13 Oct 2025 11:28:02 +0500 |
parents | 0e5c535e379e |
children |
comparison
equal
deleted
inserted
replaced
8:0e5c535e379e | 9:1d9dacd8fe55 |
---|---|
219 } | 219 } |
220 | 220 |
221 // Core logic | 221 // Core logic |
222 static void resize(Client *c, int x, int y, int w, int h) { | 222 static void resize(Client *c, int x, int y, int w, int h) { |
223 c->x = x; c->y = y; c->w = w; c->h = h; | 223 c->x = x; c->y = y; c->w = w; c->h = h; |
224 XMoveResizeWindow(dpy, c->win, x, y, w, h); | 224 XMoveResizeWindow(dpy, c->win, x, y, w - 2 * border_width, h - 2 * border_width); |
225 } | 225 } |
226 | 226 |
227 static void updateborder(Client *c) { | 227 static void updateborder(Client *c) { |
228 XSetWindowBorder(dpy, c->win, c == focused ? border_focused : border_normal); | 228 XSetWindowBorder(dpy, c->win, c == focused ? border_focused : border_normal); |
229 } | 229 } |