mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 16:45:57 -05:00
Fix SDL_SetWindowSize with X11 non-RESIZABLE windows, patch by Pierre-Loup.
This commit is contained in:
@@ -754,7 +754,7 @@ X11_SetWindowSize(_THIS, SDL_Window * window)
|
||||
|
||||
XGetWMNormalHints(display, data->xwindow, sizehints, &userhints);
|
||||
|
||||
sizehints->min_width = sizehints->max_height = window->w;
|
||||
sizehints->min_width = sizehints->max_width = window->w;
|
||||
sizehints->min_height = sizehints->max_height = window->h;
|
||||
|
||||
XSetWMNormalHints(display, data->xwindow, sizehints);
|
||||
|
||||
Reference in New Issue
Block a user