Mercurial > gbwm
changeset 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 | 77da93f91cbc |
files | Makefile gbwm.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Oct 13 09:49:19 2025 +0500 +++ b/Makefile Mon Oct 13 11:28:02 2025 +0500 @@ -5,7 +5,7 @@ CFLAGS ?= -O3 -std=c99 -Wall -DVERSION=\"$(VERSION)\" PREFIX ?= /usr/local -$(TARGET): +build: config.h $(CC) $(CFLAGS) gbwm.c -o $@ -lX11 -lXft -I/usr/include/freetype2/ -lXtst config.h: default.config.h
--- 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) {