Browse Source

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.
Frank Praznik 1 year ago
parent
commit
b6a92c113f
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

@@ -1087,8 +1087,6 @@ static void decoration_frame_configure(struct libdecor_frame *frame,
     window->state_not_floating = tiled;
     window->state_not_floating = tiled;
 
 
     /* Calculate the new window geometry */
     /* Calculate the new window geometry */
-    wind->requested_window_width = width;
-    wind->requested_window_height = height;
     ConfigureWindowGeometry(window);
     ConfigureWindowGeometry(window);
 
 
     /* ... then commit the changes on the libdecor side. */
     /* ... then commit the changes on the libdecor side. */