SDL: wayland: Use the floating width/height for initial window creation

From ffc3f71aa24ba77d3933eecc882512aee080cbeb Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Mon, 25 Mar 2024 14:43:46 -0400
Subject: [PATCH] wayland: Use the floating width/height for initial window
 creation

The dimensions for fixed-size state set via window flags will be applied later in the window creation process.

Restores the window to the proper windowed size when leaving fullscreen.
---
 src/video/wayland/SDL_waylandwindow.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index acd6a8d9cbf0b..1daf6310a1bac 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -2224,11 +2224,11 @@ int Wayland_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Propert
     /* Cache the app_id at creation time, as it may change before the window is mapped. */
     data->app_id = SDL_strdup(SDL_GetAppID());
 
-    data->requested.width = window->w;
-    data->requested.height = window->h;
+    data->requested.width = window->floating.w;
+    data->requested.height = window->floating.h;
     if (data->scale_to_display) {
-        data->requested.logical_width = PixelToPoint(window, window->w);
-        data->requested.logical_height = PixelToPoint(window, window->h);
+        data->requested.logical_width = PixelToPoint(window, window->floating.w);
+        data->requested.logical_height = PixelToPoint(window, window->floating.h);
     }
 
     if (!external_surface) {