The current implementation of window.Fullscreen() makes it impossible to gracefully leave the fullscreen / kiosk mode without manually executing commands on the window itself.
This PR fixes it by extending both methods with a bool window.Fullscreen(fullscreen bool) and window.Kiosk(kiosk bool) to set / unset the mode.
The current implementation of
window.Fullscreen()
makes it impossible to gracefully leave the fullscreen / kiosk mode without manually executing commands on the window itself.This PR fixes it by extending both methods with a bool
window.Fullscreen(fullscreen bool)
andwindow.Kiosk(kiosk bool)
to set / unset the mode.