We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5471

Summary: Creating a fullscreen desktop window goes windowed temporarily
Product: SDL Reporter: Emily Pasfield <fielddashos>
Component: videoAssignee: Alex Szpakowski <amaranth72>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 Keywords: target-2.0.16
Version: 2.0.14   
Hardware: x86_64   
OS: macOS 10.14   

Description Emily Pasfield 2021-01-17 02:55:20 UTC
When I make a fullscreen desktop window, it goes fullscreen for a split second, before going windowed quickly, then back fullscreen and continues running the program normally.

I make the window with this code:
> SDL_Renderer *renderer;
> SDL_Window *window;
> SDL_CreateWindowAndRenderer(1440, 900, SDL_WINDOW_FULLSCREEN_DESKTOP, &window, &renderer);
Comment 1 Sam Lantinga 2021-02-02 06:37:20 UTC
This was caused by trying to us a Metal renderer on an OpenGL window and SDL trying to recreate the window with the new parameters. It turns out we don't need to do that, at least on macOS 10.15.

This is fixed, thanks!
https://hg.libsdl.org/SDL/rev/79c03aa2d7a8
Comment 2 Sam Lantinga 2021-02-02 20:03:34 UTC
And now closed.