sway/include/sway/tree
Kenny Levinsen 109c921acd tree/view: Send configure before mapping
Sending 0,0 as configure dimensions indicate that the client is free to
pick its own dimensions. When tiling, the client needs to strictly
adhere to the tile dimensions. Sway's handling of this has been to send
a the appropriate dimensions in a new configure when the surface is
mapped, leading to the first buffer most likely being incorrectly sized.

Move the majority of the mapping logic to view_premap, issued on the
initial role commit rather than when mapping the view. This allow the
first configure to be driven by a tree transaction with the appropriate
geometr, and allows container siblings to start preparing earlier as
well, reducing the new window latency.

Fixes: https://github.com/swaywm/sway/issues/2176
2025-06-20 16:57:51 +02:00
..
arrange.h Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
container.h Remove trailing spaces 2025-06-05 18:15:56 +02:00
node.h scene_graph: Maintain wlr_scene_nodes for the sway tree. 2024-01-18 18:36:54 +03:00
root.h (desktop|tree)/output: Do not use layout listener to arrange 2024-09-04 13:49:35 -04:00
view.h tree/view: Send configure before mapping 2025-06-20 16:57:51 +02:00
workspace.h tree/workspace: Remove exclude arg from get_highest_available 2025-05-22 17:12:51 +02:00