[hackers] [dwm] [patch] alwayscenter: exclude bar height when positioning

From: ruby R53 <red_M95_AT_proton.me>
Date: Sun, 08 Mar 2026 05:52:23 +0000

Both the center and alwayscenter patches calculate the center position of the window without removing the bar from the equation, making them spawn in the literal center of the screen rather than the effective one.

This patch fixes this by excluding the bar height from the screen's, and also works when the bar is hidden via Mod+b.


Received on Sun Mar 08 2026 - 06:52:23 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 08 2026 - 07:00:34 CET