Skip to content

SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES = 0 does not disable maximize button on window bar #7470

Open
@SRSaunders

Description

@SRSaunders

I call SDL_SetHint( SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES, "0" ) before SDL_Init( SDL_INIT_VIDEO ), and then I create a Vulkan window using SDL_CreateWindow() with flags = SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE.

It appears that fullscreen spaces are indeed disabled, however the green maximize button is still present on the window title bar. According to the documentation, the maximize button should be disabled for SDL_WINDOW_RESIZABLE windows when the hint is active.

If you press the maximize button, the macOS window manager will override the hint and use spaces which I do not want for my game. I require true SDL_WINDOW_FULLSCREEN_DESKTOP behaviour which I have implemented via program control, but don't want a user to override this by using the maximize button.

Running macOS Monterey 12.6. with SDL2 version 2.26.4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions