Fix SDL_SetWindowSize with X11 non-RESIZABLE windows, patch by Pierre-Loup.

This commit is contained in:
Sam Lantinga
2012-06-22 23:31:22 -04:00
parent 5160c3d202
commit 6adb4e9008

View File

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