From 27085df50d47d3b166ccb10813216594eb1887dc Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Thu, 4 May 2023 12:43:52 -0400
Subject: [PATCH] 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.
---
src/video/wayland/SDL_waylandwindow.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index fc4fe6b4ecdb..87b189daca15 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/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) {