Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch: SDL_WINDOWEVENT_RESIZED not sent after SDL_WINDOWEVENT_SIZE_CHANGED when console is docked/undocked #31

Open
p-sam opened this issue Oct 10, 2023 · 0 comments

Comments

@p-sam
Copy link

p-sam commented Oct 10, 2023

Windows with the SDL_WINDOW_RESIZABLE flag get resized whenever operationMode changes (roughly when the console is docked or undocked), but since that change is external (= the user did not call SDL_SetWindowSize), a corresponding SDL_WINDOWEVENT_RESIZED event should be sent when that happens.

Relevant part in the SDL2 docs from https://wiki.libsdl.org/SDL2/SDL_WindowEventID

window size has changed, either as a result of an API call or through the system or user changing the window size; this event is followed by SDL_WINDOWEVENT_RESIZED if the size was changed by an external event, i.e. the user or the window manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant