Skip to content

Commit

Permalink
Set focus on rom drag and drop. #62
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Nov 10, 2024
1 parent e32a62d commit a347f3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platforms/desktop-shared/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a347f3a

Please sign in to comment.