mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-16 07:17:18 +00:00
e061a92dc9
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. |
||
---|---|---|
.. | ||
edid-parse.c | ||
edid.h | ||
imKStoUCS.c | ||
imKStoUCS.h | ||
SDL_x11clipboard.c | ||
SDL_x11clipboard.h | ||
SDL_x11dyn.c | ||
SDL_x11dyn.h | ||
SDL_x11events.c | ||
SDL_x11events.h | ||
SDL_x11framebuffer.c | ||
SDL_x11framebuffer.h | ||
SDL_x11keyboard.c | ||
SDL_x11keyboard.h | ||
SDL_x11messagebox.c | ||
SDL_x11messagebox.h | ||
SDL_x11modes.c | ||
SDL_x11modes.h | ||
SDL_x11mouse.c | ||
SDL_x11mouse.h | ||
SDL_x11opengl.c | ||
SDL_x11opengl.h | ||
SDL_x11opengles.c | ||
SDL_x11opengles.h | ||
SDL_x11shape.c | ||
SDL_x11shape.h | ||
SDL_x11sym.h | ||
SDL_x11touch.c | ||
SDL_x11touch.h | ||
SDL_x11video.c | ||
SDL_x11video.h | ||
SDL_x11vulkan.c | ||
SDL_x11vulkan.h | ||
SDL_x11window.c | ||
SDL_x11window.h | ||
SDL_x11xinput2.c | ||
SDL_x11xinput2.h |