RustAudio / baseview

low-level window system interface for audio plugin UIs
Apache License 2.0
259 stars 54 forks source link

add drag n drop support to x11 #187

Open BillyDM opened 3 months ago

prokopyl commented 2 months ago

On top of making a merge commit to bring this up to date with main, I made a few fixes:

For good measure, I've also updated the femtovg example, so that the little orange square that follows the mouse also updates drop DragEnter/Position/Drop events. :slightly_smiling_face:

BillyDM commented 2 months ago

Yeah, I think it would be a good idea to follow how the spec suggests handling it.

I'm okay with you working on it if you're inclined to do so.

prokopyl commented 2 months ago

I just finished rewriting the logic to use a specific enum to keep track of the XDND session state. :slightly_smiling_face:

Incidentally I ended up completely rewriting the drag_and_drop file, and there isn't a single line of code remaining from winit, so I removed the attribution and license header from that file. (It's still there on the get_property file though, I haven't touched it.)

This commit should fix all of the issues I raised in my previous review. :slightly_smiling_face: