[Commits] SDL: Re-enable drag-and-drop events by default

libsdl.org revision control commits-owner at libsdl.org
Sun Sep 30 19:53:28 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/14426507701c
changeset: 12267:14426507701c
user:      Sam Lantinga <slouken at libsdl.org>
date:      Sun Sep 30 19:53:26 2018 -0700
description:
Re-enable drag-and-drop events by default

diffstat:

 src/events/SDL_events.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 0a1710b7c321 -r 14426507701c src/events/SDL_events.c
--- a/src/events/SDL_events.c	Sun Sep 30 11:26:41 2018 -0300
+++ b/src/events/SDL_events.c	Sun Sep 30 19:53:26 2018 -0700
@@ -417,8 +417,10 @@
     SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
     SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
     SDL_EventState(SDL_SYSWMEVENT, SDL_DISABLE);
+#if 0 /* Leave these events enabled so apps can respond to items being dragged onto them at startup */
     SDL_EventState(SDL_DROPFILE, SDL_DISABLE);
     SDL_EventState(SDL_DROPTEXT, SDL_DISABLE);
+#endif
 
     SDL_AtomicSet(&SDL_EventQ.active, 1);
 


More information about the commits mailing list