sway/include/sway
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
..
desktop desktop/idle_inhibit: remove event listeners on destroy 2025-04-13 23:40:56 +02:00
input input/text_input: remove event listeners on destroy 2025-04-13 23:40:56 +02:00
tree tree/view: Send configure before mapping 2025-06-20 16:57:51 +02:00
commands.h Add support for tearing-control-v1 2024-08-05 02:13:49 +02:00
config.h ipc-server: Force modeset if needed after executing commands 2024-11-17 19:11:58 +01:00
criteria.h criteria: add sandbox properties 2025-01-13 08:54:23 +01:00
decoration.h Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
ipc-json.h sway: add non-desktop outputs to json when running swaymsg -t get_outputs 2022-09-19 07:26:45 -04:00
ipc-server.h ipc: add support for output event 2023-02-01 11:32:57 -05:00
layers.h layer_shell: Handle popups through popup descriptor 2024-02-12 19:19:22 +03:00
lock.h ext-session-lock: Do not use commit listener to arrange 2024-09-20 00:26:36 -04:00
output.h output: Expose output_configure_scene to header 2025-02-25 11:11:22 +01:00
scene_descriptor.h scene_graph: Port xwayland 2024-01-18 18:36:54 +03:00
server.h Add support for toplevel capture 2025-06-16 14:28:20 +02:00
sway_text_node.h Introduce sway_text_node 2024-01-18 18:36:54 +03:00
swaynag.h swaynag: add printf attribute to swaynag_log() 2023-04-14 18:34:54 +02:00
xdg_decoration.h xdg-shell: chase events update 2023-11-23 19:41:57 +01:00
xwayland.h Parse missing i3 window types 2018-10-21 15:59:04 +02:00