Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/lgfx/v1/platforms/sdl/Panel_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ namespace lgfx
_update_in_semaphore = SDL_CreateSemaphore(0);
_update_out_semaphore = SDL_CreateSemaphore(0);
for (size_t pin = 0; pin < EMULATED_GPIO_MAX; ++pin) { gpio_hi(pin); }
#if defined ( __APPLE__ )
/// Since SDL 2.30.4, non-bundled apps are no longer brought to the foreground on macOS 14 or later.
/// Set the hint before SDL_Init so that the window appears in front. (can be overridden by the environment variable)
SDL_SetHint(SDL_HINT_MAC_BACKGROUND_APP, "0");
#endif
/*Initialize the SDL*/
SDL_Init(SDL_INIT_VIDEO);
SDL_StartTextInput();
Expand Down
Loading