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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2021-10-25 17:24:41 -05:00
parent 3208ee42cd
commit c00aba6893

View File

@ -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;
}