diff --git a/platforms/desktop-shared/application.cpp b/platforms/desktop-shared/application.cpp index ff36b72..e4ea6a7 100644 --- a/platforms/desktop-shared/application.cpp +++ b/platforms/desktop-shared/application.cpp @@ -360,7 +360,8 @@ static void sdl_events_emu(const SDL_Event* event) { char* dropped_filedir = event->drop.file; gui_load_rom(dropped_filedir); - SDL_free(dropped_filedir); // Free dropped_filedir memory + SDL_free(dropped_filedir); + SDL_SetWindowInputFocus(sdl_window); } break;