swayfx icon indicating copy to clipboard operation
swayfx copied to clipboard

Borders are occasionally 1px off on floating views

Open WillPower3309 opened this issue 2 years ago • 2 comments

Issue produced on swayfx running in nested mode on a 1440p 27" monitor with 1x scale. Not every position displays the bug, so usually the window has to be moved pixel by pixel... Setting a larger border size makes it easier to detect so moving pixel by pixel isn't usually needed.

Shown in the below images with a border size of 3px.

219960371-bd9b01d2-56f5-406e-9f2f-7f4e1932c0fb.png

219947929-077c2f61-af5c-4b86-924d-2af763ccefb2.png

In the picture above, the effect can be seen when zoomed into the window on the bottom right segment of the screen.

WillPower3309 avatar Feb 20 '23 00:02 WillPower3309

Issue could be due to a lack of floor() being called on x / y position of the views

WillPower3309 avatar Feb 20 '23 00:02 WillPower3309

Will be fixed as part of #127, removing from 0.3 milestone as #127 is aimed for 1.0

WillPower3309 avatar Apr 24 '23 02:04 WillPower3309