Samsung Galaxy S20+ frequently does not report safe area correctly
Author: loftafiCreated Sep 17, 2026Updated Sep 17, 2026
On my Samsung Galaxy device, about 10% of the time, the safe area is reported correctly on startup. This has already been described in another issue:
https://github.com/libsdl-org/SDL/issues/10375
The ticket is closed suggesting that sometimes there is a short delay before the safe area becomes available.
Using SDL_AddTimer to check the safe area ever 0.5s post startup, for a period of about 15 seconds, often the safe area is still never reported correctly.
Could there be a bug which causes the correct safe area to not be reported until the device is rotated? Is the first failing initial safe area call caching its result, preventing fetching the safe area again until the screen is rotated?
Source: libsdl-org/SDL