Skip to content

Commit

Permalink
Fix SDL_SetWindowSize with X11 non-RESIZABLE windows, patch by Pierre…
Browse files Browse the repository at this point in the history
…-Loup.
  • Loading branch information
slouken committed Jun 23, 2012
1 parent fde3933 commit 2220a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2220a99

Please sign in to comment.