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>
dev
Derek Foreman 3 years ago
parent 3208ee42cd
commit c00aba6893
  1. 3
      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) { } else if (client_message->type == wm->atom.xdnd_drop) {
weston_log("got drop!\n"); weston_log("got drop!\n");
return 1; return 1;
} else if (client_message->type == wm->atom.xdnd_drop) {
weston_log("got enter!\n");
return 1;
} }
return 0; return 0;
} }

Loading…
Cancel
Save