sdl2_frt/src/video/cocoa
Ryan C. Gordon e061a92dc9 Some drag'and'drop improvements.
First: disable d'n'd events by default; most apps don't need these at all, and
if an app doesn't explicitly handle these, each drop on the window will cause
a memory leak if the events are enabled. This follows the guidelines we have
for SDL_TEXTINPUT events already.

Second: when events are enabled or disabled, signal the video layer, as it
might be able to inform the OS, causing UI changes or optimizations (for
example, dropping a file icon on a Cocoa app that isn't accepting drops will
cause macOS to show a rejection animation instead of the drop operation just
vanishing into the ether, X11 might show a different cursor when dragging
onto an accepting window, etc).

Third: fill in the drop event details in the test library and enable the
events in testwm.c for making sure this all works as expected.
2018-08-02 16:03:47 -04:00
..
SDL_cocoaclipboard.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaclipboard.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaevents.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaevents.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoakeyboard.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoakeyboard.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamessagebox.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamessagebox.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoametalview.h Fix high-dpi support on macOS and simplify it and iOS variant. 2018-02-21 09:58:21 -08:00
SDL_cocoametalview.m metal: contrary to documentation, we need to set the drawableSize explicitly. 2018-05-27 20:30:03 -04:00
SDL_cocoamodes.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamodes.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamouse.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamouse.m Temporary fix for bug 3432 - macOS 10.12: small scrolls (1 wheel notch) don't generate events 2018-03-10 21:13:50 -08:00
SDL_cocoamousetap.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoamousetap.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaopengl.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaopengl.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaopengles.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoaopengles.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoashape.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoashape.m Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoavideo.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoavideo.m Some drag'and'drop improvements. 2018-08-02 16:03:47 -04:00
SDL_cocoavulkan.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_cocoavulkan.m Support official Vulkan SDK for macOS. 2018-02-25 23:02:09 -08:00
SDL_cocoawindow.h Some drag'and'drop improvements. 2018-08-02 16:03:47 -04:00
SDL_cocoawindow.m Some drag'and'drop improvements. 2018-08-02 16:03:47 -04:00