From b6a92c113faebb713a4f14f82c41ca252443f759 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Fri, 29 Dec 2023 08:59:45 -0500 Subject: [PATCH] wayland: Don't apply old libdecor window dimensions Don't overwrite the current dimensions unless they've actually changed, or programmatically set dimensions can be overwritten. --- 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 a43766c43..288ec96dd 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -1087,8 +1087,6 @@ static void decoration_frame_configure(struct libdecor_frame *frame, window->state_not_floating = tiled; /* Calculate the new window geometry */ - wind->requested_window_width = width; - wind->requested_window_height = height; ConfigureWindowGeometry(window); /* ... then commit the changes on the libdecor side. */