mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fix window size in X11 when window manager refuses to resize
This commit is contained in:

committed by
Sam Lantinga

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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user