mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-24 13:35:58 -04:00
drag: check dnd action and accepted on touch up
Signed-off-by: xurui <xurui@kylinos.cn>
This commit is contained in:
parent
c3f7587068
commit
6dcc061a79
1 changed files with 2 additions and 1 deletions
|
|
@ -290,7 +290,8 @@ static uint32_t drag_handle_touch_up(struct wlr_seat_touch_grab *grab,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (drag->focus_client) {
|
||||
if (drag->focus_client && drag->source->current_dnd_action &&
|
||||
drag->source->accepted) {
|
||||
drag_drop(drag, time);
|
||||
} else if (drag->source->impl->dnd_finish) {
|
||||
// This will end the grab and free `drag`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue