xwayland: set initial geometry in map_request handler

Set the initial geometry of maximized/fullscreen views before
actually mapping them, so that they can do their initial layout and
drawing with the correct geometry. This avoids visual glitches and
also avoids undesired layout changes with some apps (e.g. HomeBank).

Fixes: #1320

v2: ensure valid geometry for unmanaged->managed case
This commit is contained in:
John Lindgren 2024-02-12 19:52:36 -05:00 committed by Johan Malm
parent c3ea956837
commit c9018da4c4
2 changed files with 82 additions and 41 deletions

View file

@ -69,6 +69,7 @@ struct xwayland_view {
struct wl_listener set_override_redirect;
struct wl_listener set_strut_partial;
struct wl_listener set_window_type;
struct wl_listener map_request;
/* Not (yet) implemented */
/* struct wl_listener set_role; */