Browse Source

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.
Frank Praznik 1 year ago
parent
commit
27085df50d
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/video/wayland/SDL_waylandwindow.c

+ 0 - 2
src/video/wayland/SDL_waylandwindow.c

@@ -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) {