backend/wayland: improve/fix xdg_toplevel (re-)initialization

- Reset all variables representing an initialized xdg_toplevel's state
on unmap.
- Send an initial commit only when an output is about to be enabled.
- If an output isn't configured yet, don't commit a buffer.
This commit is contained in:
Kirill Primak 2024-02-11 10:47:35 +03:00
parent d9f6498f8a
commit d80c46250d
2 changed files with 21 additions and 13 deletions

View file

@ -99,6 +99,8 @@ struct wlr_wl_output {
bool has_configure_serial;
bool configured;
bool initialized;
uint32_t enter_serial;
struct {