mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-03-12 04:01:17 +01:00
wayland: Keep the fullscreen check for maximize/restore events
This commit is contained in:
parent
584673a5a1
commit
1fb1aa1983
@ -243,12 +243,14 @@ 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.
|
||||||
*/
|
*/
|
||||||
|
if (!fullscreen) {
|
||||||
SDL_SendWindowEvent(window,
|
SDL_SendWindowEvent(window,
|
||||||
maximized ?
|
maximized ?
|
||||||
SDL_WINDOWEVENT_MAXIMIZED :
|
SDL_WINDOWEVENT_MAXIMIZED :
|
||||||
SDL_WINDOWEVENT_RESTORED,
|
SDL_WINDOWEVENT_RESTORED,
|
||||||
0, 0);
|
0, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (width == 0 || height == 0) {
|
if (width == 0 || height == 0) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user