|
@@ -290,8 +290,10 @@ handle_configure_xdg_toplevel(void *data,
|
|
/* For fullscreen, foolishly do what the compositor says. If it's wrong,
|
|
/* For fullscreen, foolishly do what the compositor says. If it's wrong,
|
|
* don't blame us, we were explicitly instructed to do this.
|
|
* don't blame us, we were explicitly instructed to do this.
|
|
*/
|
|
*/
|
|
- window->w = width;
|
|
|
|
- window->h = height;
|
|
|
|
|
|
+ if (width != 0 && height != 0) {
|
|
|
|
+ window->w = width;
|
|
|
|
+ window->h = height;
|
|
|
|
+ }
|
|
|
|
|
|
/* This part is good though. */
|
|
/* This part is good though. */
|
|
if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
|
|
if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
|