From a8ea8db6d7e3c67521428b58a1e5e9ebd3acbdc7 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Thu, 16 Mar 2023 13:58:06 -0400 Subject: [PATCH] wayland: Update the popup window geometry on configure events --- src/video/wayland/SDL_waylandwindow.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 1d71a28086..fe9580d4bf 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -650,8 +650,11 @@ static void handle_configure_xdg_popup(void *data, GetPopupPosition(wind->sdlwindow, 0, 0, &offset_x, &offset_y); x -= offset_x; y -= offset_y; - - SDL_SendWindowEvent(wind->sdlwindow, SDL_EVENT_WINDOW_RESIZED, width, height); + + wind->requested_window_width = width; + wind->requested_window_height = height; + + ConfigureWindowGeometry(wind->sdlwindow); SDL_SendWindowEvent(wind->sdlwindow, SDL_EVENT_WINDOW_MOVED, x, y); if (wind->surface_status == WAYLAND_SURFACE_STATUS_WAITING_FOR_CONFIGURE) {