Fix window size in X11 when window manager refuses to resize
(cherry picked from commit a67ae8eed5)
This commit is contained in:
1 parent
f741adc86c
commit
74e8a6451b
1 file changed
+4
@@ -979,6 +979,10 @@ void X11_SetWindowSize(_THIS, SDL_Window *window)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
|
if (SDL_TICKS_PASSED(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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user