(Wayland) Fix splash screen when using xdg_toplevel

This commit is contained in:
Colin Kinloch 2022-03-19 19:04:12 +00:00 committed by Autechre
parent 82c69995f0
commit c6892d03c3
2 changed files with 6 additions and 12 deletions

View File

@ -90,12 +90,9 @@ static void handle_toplevel_config_common(void *data,
break;
}
}
if ( width > 0
&& height > 0)
{
wl->width = width;
wl->height = height;
}
wl->width = width > 0 ? width : DEFAULT_WINDOWED_WIDTH;
wl->height = height > 0 ? height : DEFAULT_WINDOWED_HEIGHT;
#ifdef HAVE_EGL
if (wl->win)

View File

@ -83,12 +83,9 @@ static void handle_toplevel_config_common(void *data,
break;
}
}
if ( width > 0
&& height > 0)
{
wl->width = width;
wl->height = height;
}
wl->width = width > 0 ? width : DEFAULT_WINDOWED_WIDTH;
wl->height = height > 0 ? height : DEFAULT_WINDOWED_HEIGHT;
wl->configured = false;
}