mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-04-28 10:17:23 +00:00
xwayland/selection/dnd: always send finished event
Signed-off-by: xurui <xurui@kylinos.cn>
This commit is contained in:
parent
221bc5f6aa
commit
db2c907f93
@ -222,10 +222,7 @@ int xwm_handle_selection_client_message(struct wlr_xwm *xwm,
|
|||||||
enum wl_data_device_manager_dnd_action action =
|
enum wl_data_device_manager_dnd_action action =
|
||||||
data_device_manager_dnd_action_from_atom(xwm, action_atom);
|
data_device_manager_dnd_action_from_atom(xwm, action_atom);
|
||||||
|
|
||||||
if (performed) {
|
wlr_data_source_dnd_finish(source);
|
||||||
wlr_data_source_dnd_finish(source);
|
|
||||||
}
|
|
||||||
|
|
||||||
wlr_log(WLR_DEBUG, "DND_FINISH window=%" PRIu32 " performed=%d action=%d",
|
wlr_log(WLR_DEBUG, "DND_FINISH window=%" PRIu32 " performed=%d action=%d",
|
||||||
target_window, performed, action);
|
target_window, performed, action);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user