Closed epicgamer256705 closed 1 year ago
The config you have provided only specifies a 5px border and no gaps, unlike your bug description (5px gap and 2px border). You're definitely going to get some odd behaviour if you tile windows directly against one another and set a border of 5px I think.
Are you able to provide a screenshot of the problem please? I'm not sure I understand but it sounds like I would expect: gaps offset the window down and to the right and then the border is applied around the window. Are you saying that the border is displaced from the window itself?
ah ok, I've run the example you provided now and I can see the issue: the size of windows wasn't being shrunk to account for the border frame being drawn. That should be fixed now following the commit shown above.
Describe the bug
When you have borders around the windows, it draws the window a couple of pixels down and to the right. For example, if you have 5px gaps and a 2px border with one window opened it will not be centered.
Expected behavior
It should correct the window position so that the border will not make it in the wrong position.
Versions & OS Details
arch linux git commit: 37d0fbdcff39eed2a7f7bcff7c16bb5013cae26c
Additional context
Example main.rs: