From 422c0e0851802bb65bb4390734aa818b733daed6 Mon Sep 17 00:00:00 2001 From: instantuzer <152444996+instantuzer@users.noreply.github.com> Date: Mon, 28 Oct 2024 20:55:28 +0100 Subject: [PATCH] correction on width calculation it was not perfect after all. after fresh install noticed defaults were different from altered files. corrected --- instantwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instantwm.c b/instantwm.c index 5450d88..9de1ab8 100644 --- a/instantwm.c +++ b/instantwm.c @@ -1677,7 +1677,7 @@ void drawbar(Monitor *m) { if ((w = m->ww - sw - x - stw) > bh) { if (n > 0) { // Calculate the base width and remainder before the loop - int total_width = w + 1; // Total available width for titles + int total_width = w + 12; // Total available width for titles int each_width = total_width / n; // Base width for each title int remainder = total_width % n; // Remainder to distribute extra pixels