xdg_shell: configure surface on initial commit

Instead of waiting for the surface to be mapped before sending a
configure event, do it on initial commit.

Note, wlroots 0.18 no longer sends automatic configure events on
initial commit.
This commit is contained in:
Simon Ser 2024-08-24 15:44:46 +02:00
parent 8b0b69c113
commit ca4b8c065b
3 changed files with 24 additions and 2 deletions

View file

@ -12,6 +12,7 @@ struct cg_xdg_shell_view {
struct wlr_xdg_toplevel *xdg_toplevel;
struct wl_listener destroy;
struct wl_listener commit;
struct wl_listener unmap;
struct wl_listener map;
struct wl_listener request_fullscreen;