mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fix dropping file event
This commit is contained in:

committed by
Sam Lantinga

parent
5dce4bc716
commit
4ab31ca678
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user