mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-03-16 15:06:22 +01:00
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. |
||
---|---|---|
.. | ||
SDL_cocoaclipboard.h | ||
SDL_cocoaclipboard.m | ||
SDL_cocoaevents.h | ||
SDL_cocoaevents.m | ||
SDL_cocoakeyboard.h | ||
SDL_cocoakeyboard.m | ||
SDL_cocoamessagebox.h | ||
SDL_cocoamessagebox.m | ||
SDL_cocoametalview.h | ||
SDL_cocoametalview.m | ||
SDL_cocoamodes.h | ||
SDL_cocoamodes.m | ||
SDL_cocoamouse.h | ||
SDL_cocoamouse.m | ||
SDL_cocoamousetap.h | ||
SDL_cocoamousetap.m | ||
SDL_cocoaopengl.h | ||
SDL_cocoaopengl.m | ||
SDL_cocoaopengles.h | ||
SDL_cocoaopengles.m | ||
SDL_cocoashape.h | ||
SDL_cocoashape.m | ||
SDL_cocoavideo.h | ||
SDL_cocoavideo.m | ||
SDL_cocoavulkan.h | ||
SDL_cocoavulkan.m | ||
SDL_cocoawindow.h | ||
SDL_cocoawindow.m |