[client] wayland: fix fullscreen option launch bug

This commit is contained in:
Geoffrey McRae
2026-07-18 03:31:22 +10:00
parent acb5c06794
commit 47ade6395d
4 changed files with 33 additions and 7 deletions

View File

@@ -93,8 +93,13 @@ static const struct xdg_surface_listener xdgSurfaceListener = {
static void xdgToplevelConfigure(void * data, struct xdg_toplevel * xdgToplevel,
int32_t width, int32_t height, struct wl_array * states)
{
state.width = width;
state.height = height;
// A zero size means that the compositor is leaving the size up to us.
if (width > 0 && height > 0)
{
state.width = width;
state.height = height;
}
state.fullscreen = false;
state.floating = true;