mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
wayland: Initialize floating size at window creation
This allows the windowed size to be restored for windows initially created already in non-floating state.
This commit is contained in:
parent
dab33844e3
commit
b5210cac44
@ -1132,6 +1132,9 @@ int Wayland_CreateWindow(_THIS, SDL_Window *window)
|
||||
data->outputs = NULL;
|
||||
data->num_outputs = 0;
|
||||
|
||||
data->floating_width = window->windowed.w;
|
||||
data->floating_height = window->windowed.h;
|
||||
|
||||
data->surface =
|
||||
wl_compositor_create_surface(c->compositor);
|
||||
wl_surface_add_listener(data->surface, &surface_listener, data);
|
||||
|
Loading…
Reference in New Issue
Block a user