Fix dropping file event

This commit is contained in:
kanjitalk755 2023-11-05 15:21:17 +09:00 committed by Sam Lantinga
parent 5dce4bc716
commit 4ab31ca678

View File

@ -477,7 +477,7 @@ static void SDL_CopyEvent(SDL_Event *dst, SDL_Event *src)
dst->edit.text = dst->edit.short_text;
} else if (src->type == SDL_EVENT_TEXT_INPUT && src->text.text == src->text.short_text) {
dst->text.text = dst->text.short_text;
} else if (src->type == SDL_EVENT_DROP_TEXT && src->drop.data == src->drop.short_data) {
} else if ((src->type == SDL_EVENT_DROP_FILE || src->type == SDL_EVENT_DROP_TEXT) && src->drop.data == src->drop.short_data) {
dst->drop.data = dst->drop.short_data;
}
}