mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 16:25:37 +00:00
wayland: Keep the fullscreen check for maximize/restore events
This commit is contained in:
parent
584673a5a1
commit
1fb1aa1983
|
@ -243,11 +243,13 @@ handle_configure_xdg_toplevel(void *data,
|
||||||
*
|
*
|
||||||
* No, we do not get minimize events from xdg-shell.
|
* No, we do not get minimize events from xdg-shell.
|
||||||
*/
|
*/
|
||||||
SDL_SendWindowEvent(window,
|
if (!fullscreen) {
|
||||||
maximized ?
|
SDL_SendWindowEvent(window,
|
||||||
SDL_WINDOWEVENT_MAXIMIZED :
|
maximized ?
|
||||||
SDL_WINDOWEVENT_RESTORED,
|
SDL_WINDOWEVENT_MAXIMIZED :
|
||||||
0, 0);
|
SDL_WINDOWEVENT_RESTORED,
|
||||||
|
0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (width == 0 || height == 0) {
|
if (width == 0 || height == 0) {
|
||||||
|
|
Loading…
Reference in a new issue