diff 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
line wrap: on
line diff
--- a/gbwm.c	Mon Oct 13 09:49:19 2025 +0500
+++ b/gbwm.c	Mon Oct 13 11:28:02 2025 +0500
@@ -221,7 +221,7 @@
 // Core logic
 static void resize(Client *c, int x, int y, int w, int h) {
 	c->x = x; c->y = y; c->w = w; c->h = h;
-	XMoveResizeWindow(dpy, c->win, x, y, w, h);
+	XMoveResizeWindow(dpy, c->win, x, y, w - 2 * border_width, h - 2 * border_width);
 }
 
 static void updateborder(Client *c) {