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 - Creating a fullscreen desktop window goes windowed temporarily
Summary: Creating a fullscreen desktop window goes windowed temporarily
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.14
Hardware: x86_64 macOS 10.14
: P2 minor
Assignee: Alex Szpakowski
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.16
Depends on:
Blocks:
 
Reported: 2021-01-17 02:55 UTC by Emily Pasfield
Modified: 2021-02-02 20:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.