mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-10 23:55:43 +00:00
x11: Force window back to expected size after SDL_SetWindowBordered.
This helps if the window manager decided to let it fill the space that an existing border was using before its removal. Fixes #5718.
This commit is contained in:
parent
51db775442
commit
b75cd2b36d
|
@ -1074,6 +1074,10 @@ X11_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
|
||||||
X11_XSync(display, False);
|
X11_XSync(display, False);
|
||||||
X11_XCheckIfEvent(display, &event, &isUnmapNotify, (XPointer)&data->xwindow);
|
X11_XCheckIfEvent(display, &event, &isUnmapNotify, (XPointer)&data->xwindow);
|
||||||
X11_XCheckIfEvent(display, &event, &isMapNotify, (XPointer)&data->xwindow);
|
X11_XCheckIfEvent(display, &event, &isMapNotify, (XPointer)&data->xwindow);
|
||||||
|
|
||||||
|
/* Make sure the window manager didn't resize our window for the difference. */
|
||||||
|
X11_XResizeWindow(display, data->xwindow, window->w, window->h);
|
||||||
|
X11_XSync(display, False);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue