wayland: Remove redundant window geometry configuration

The window geometry will be updated when in underlying shell surface config handler, before the config is ack-ed, so no need to do it in the popup config handler.
This commit is contained in:
Frank Praznik
2023-05-04 12:43:52 -04:00
parent eb6837e353
commit 27085df50d

View File

@@ -653,7 +653,6 @@ static void handle_configure_xdg_popup(void *data,
int32_t width,
int32_t height)
{
/* Popups can't be resized, so only position data is sent. */
SDL_WindowData *wind = (SDL_WindowData *)data;
int offset_x, offset_y;
@@ -665,7 +664,6 @@ static void handle_configure_xdg_popup(void *data,
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) {