Smithay / smithay

A smithy for rusty wayland compositors
MIT License
1.9k stars 168 forks source link

Provide a way to cancel a DnD #1574

Open YaLTeR opened 3 weeks ago

YaLTeR commented 3 weeks ago

As far as I can tell, currently DnDGrab unconditionally tries to complete the DnD in unset(), which means that there's no way to force-cancel it, e.g. when the user presses Escape in a compositor.

YaLTeR commented 3 weeks ago

Semi related, it would be nice to get the drop result (success or cancel) in ClientDnDHandler::dropped().