From c00aba6893cb0d51f6ec1635db98488bbb576f69 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 25 Oct 2021 17:24:41 -0500 Subject: [PATCH] xwayland: Fix copy and paste error This leg of the if/else ladder is a duplicate of the previous conditional. It appears to have been intended to log enter events, but we already handle those earlier. The drop event is already logged as well, so let's just discard this branch entirely. Fixes #552 Signed-off-by: Derek Foreman --- xwayland/dnd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xwayland/dnd.c b/xwayland/dnd.c index e981e818..aea0845f 100644 --- a/xwayland/dnd.c +++ b/xwayland/dnd.c @@ -208,9 +208,6 @@ weston_wm_handle_dnd_event(struct weston_wm *wm, } else if (client_message->type == wm->atom.xdnd_drop) { weston_log("got drop!\n"); return 1; - } else if (client_message->type == wm->atom.xdnd_drop) { - weston_log("got enter!\n"); - return 1; } return 0; }