mirror of https://github.com/encounter/SDL.git
wayland: Ignore stateless/sizeless configs when starting in fullscreen mode
This commit is contained in:
parent
ac32c522ad
commit
ae7ee2a59c
|
@ -219,9 +219,15 @@ handle_configure_xdg_toplevel(void *data,
|
||||||
|
|
||||||
/* Foolishly do what the compositor says here. If it's wrong, don't
|
/* Foolishly do what the compositor says here. If it's wrong, don't
|
||||||
* blame us, we were explicitly instructed to do this.
|
* blame us, we were explicitly instructed to do this.
|
||||||
|
*
|
||||||
|
* UPDATE: Nope, we can't actually do that, the compositor may give
|
||||||
|
* us a completely stateless, sizeless configure, with which we have
|
||||||
|
* to enforce our own state anyway.
|
||||||
*/
|
*/
|
||||||
window->w = width;
|
if (width != 0 && height != 0) {
|
||||||
window->h = height;
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue