From db2c907f934fcbff4859e6ea74ca12b9f30441ab Mon Sep 17 00:00:00 2001 From: xurui Date: Wed, 8 Jan 2025 15:32:26 +0800 Subject: [PATCH] xwayland/selection/dnd: always send finished event Signed-off-by: xurui --- xwayland/selection/dnd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xwayland/selection/dnd.c b/xwayland/selection/dnd.c index cdbcd1e9c..70792b5f4 100644 --- a/xwayland/selection/dnd.c +++ b/xwayland/selection/dnd.c @@ -222,10 +222,7 @@ int xwm_handle_selection_client_message(struct wlr_xwm *xwm, enum wl_data_device_manager_dnd_action action = 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", target_window, performed, action); return 1;