mirror of https://github.com/libsdl-org/SDL.git
Fix window size in X11 when window manager refuses to resize
This commit is contained in:
parent
b5a7bd72df
commit
a67ae8eed5
|
|
@ -997,6 +997,10 @@ void X11_SetWindowSize(_THIS, SDL_Window *window)
|
|||
}
|
||||
|
||||
if (SDL_GetTicks() >= timeout) {
|
||||
/* Timeout occurred and window size didn't change
|
||||
* wwindow manager likely denied the resize. */
|
||||
window->w = orig_w;
|
||||
window->h = orig_h;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue