sway/include
Kenny Levinsen b23e670824 tree/view: Send estimated 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.

Introduce a view_premap which goes through part of the mapping dance,
calculating what the container dimensions would be at this time and
sending it as a configure. This is only an estimate and inherently
racey if the user very quickly changes focused workspace between surface
role commit and first attached buffer, but when it works the client has
a chance of getting the first buffer right, when it doesn't it is no
worse than it would have been otherwise.

Fixes: https://github.com/swaywm/sway/issues/2176
2024-08-24 23:43:12 +02:00
..
sway tree/view: Send estimated configure before mapping 2024-08-24 23:43:12 +02:00
swaybar common: move load_image to swaybar 2023-11-23 20:42:04 +01:00
swaynag swaynag: Implement wp_cursor_shape_v1 2023-07-31 10:34:11 +02:00
cairo_util.h cairo: Replace <cairo/cairo.h> by <cairo.h> 2021-05-10 10:28:32 +02:00
gesture.h sway: add bindgesture command 2022-05-30 12:20:43 +02:00
ipc-client.h refactor: use JSON_MAX_DEPTH everywhere 2021-10-25 10:18:40 +02:00
ipc.h i3-compat: add GET_BINDING_STATE IPC command 2020-06-14 00:55:14 -04:00
list.h list.c: rename free_flat_list to list_free_items_and_destroy 2018-12-09 01:15:38 +00:00
log.h Use -fmacro-prefix-map to strip build path 2019-07-15 16:35:50 -04:00
loop.h Remove timerfd from loop implementation 2018-10-15 00:26:27 +10:00
meson.build Address review comments 2018-03-28 14:43:23 -04:00
pango.h pango: add printf attribute 2023-04-14 18:34:54 +02:00
pool-buffer.h cairo: Replace <cairo/cairo.h> by <cairo.h> 2021-05-10 10:28:32 +02:00
stringop.h Add format_str() and vformat_str() 2023-04-14 18:34:54 +02:00
util.h input: Move get_current_time_msec in from util 2021-06-23 09:55:36 +02:00