revery-ui / esy-sdl2

Esy-enabled build for SDL2
zlib License
5 stars 9 forks source link

SDL_WINDOWEVENT_FULLSCREEN: add fullscreen event #15

Closed zbaylin closed 4 years ago

zbaylin commented 4 years ago

This is currently only implemented on macOS. From my knowledge, it's the only DE/OS that allows the user to trigger a window to be in fullscreen.

The behavior is very similar to that of the maximize event.

Yet another attempt at addressing onivim/oni2#1462 😳

zbaylin commented 4 years ago

I didn't make a PR for it, but if you checkout fullscreen-event on reason-sdl2, I added the small amount of plumbing needed for this there too. It works as you would expect :)