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 6343e94f912d20b9
parent 6342 ac83b73f0edd
child 6344 2ff08dd2e5e4
Fix SDL_SetWindowSize with X11 non-RESIZABLE windows, patch by Pierre-Loup.
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Fri Jun 22 19:19:18 2012 -0400
     1.2 +++ b/src/video/x11/SDL_x11window.c	Fri Jun 22 23:31:22 2012 -0400
     1.3 @@ -754,7 +754,7 @@
     1.4  
     1.5           XGetWMNormalHints(display, data->xwindow, sizehints, &userhints);
     1.6  
     1.7 -         sizehints->min_width = sizehints->max_height = window->w;
     1.8 +         sizehints->min_width = sizehints->max_width = window->w;
     1.9           sizehints->min_height = sizehints->max_height = window->h;
    1.10  
    1.11           XSetWMNormalHints(display, data->xwindow, sizehints);