-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sokol_app.h: Implement drag and drop support
- Add `data_offer` attribute to wayland-specific data to track advertised drag-and-drop (dnd) data offers over its lifespan, - track the `serial` attribute on all input methods to correctly accept dnd data offers, - setup the necessary calls to correctly register dnd support with the wayland compositor, - handle drop-callbacks by reading from the given file descriptor, using the reused x11-specific filepath parser to differentiate the individual paths, and sending the appropriate event, - move check for `_sapp.clipboard` to appropriate handler instead of before registering data_device listener as it is used for both clipboard and dnd, - move and rename `_sapp_x11_parse_dropped_files_list` to a linux-specific position as `_sapp_linux_parse_dropped_files_list`, and - remove whitespace from egl-specific error message.
- Loading branch information
Showing
1 changed file
with
134 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters