Wrong initial window size on unfocused monitor #11466
Replies: 8 comments 19 replies
-
|
minor issue, and I am not sure if we can even reliably detect where a window will end up at that stage |
Beta Was this translation helpful? Give feedback.
-
|
@vaxerski I think many people disagree with the statement that this is a minor issue. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I applied the patch atop v0.50.1 tag. With animations disabled I don't see any glitchy behavior opening new windows. This matches Sway behavior. Occasionally the background image will flash briefly in the area where a tile was when closing some windows. It would be cool if the tile that will fill that void could be drawn faster without that occurring. The brief flash of background image when opening and closing windows is somewhat expected with animations enabled. |
Beta Was this translation helpful? Give feedback.
-
With the patch I've got some app dialog windows now extending beyond the viewable screen. |
Beta Was this translation helpful? Give feedback.
-
|
@vaxerski can you please promote this to an issue? It clearly is one, even if it can't be fixed right now. |
Beta Was this translation helpful? Give feedback.
-
|
@ddevault We really admire how you achieved zero flickering when opening and closing windows in Sway. Would you be willing to share some insights or advice on how you accomplished that? Vaxerski considered a few (non-ideal) workarounds, but we have yet to identify a path forward:
We’d appreciate any guidance or ideas—als je iets wilt delen, graag;) |
Beta Was this translation helpful? Give feedback.
-
|
Sway has a system of layout transactions for this purpose. It waits for all implicated windows to acknowledge their new configuration, or for a timeout to expire. It looks like the timeout is 200ms. I haven't worked on sway in years so you'll have to reach out to the current upstream stewards for more details. The core code is in sway/desktop/transaction.c, for reference. |
Beta Was this translation helpful? Give feedback.
-
|
I doubt it will do much but checking #11770 might be worth a shot as it improves uv calculations and surface sync overall |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
#9057
Dwindle window size prediction assumes that new windows always spawn at the current window focus, which isn’t true
Beta Was this translation helpful? Give feedback.
All reactions