Fix SDL_SetWindowSize with X11 non-RESIZABLE windows, patch by Pierre-Loup.
authorSam Lantinga <slouken@libsdl.org>
Fri, 22 Jun 2012 23:31:22 -0400
changeset 6343 e94f912d20b9
parent 6342 ac83b73f0edd
child 6344 2ff08dd2e5e4
Fix SDL_SetWindowSize with X11 non-RESIZABLE windows, patch by Pierre-Loup.
src/video/x11/SDL_x11window.c
--- a/src/video/x11/SDL_x11window.c	Fri Jun 22 19:19:18 2012 -0400
+++ b/src/video/x11/SDL_x11window.c	Fri Jun 22 23:31:22 2012 -0400
@@ -754,7 +754,7 @@
 
          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);