xwayland: make wayland → xwayland work

This commit is contained in:
emersion 2018-03-28 17:26:29 -04:00
parent 30babb3865
commit 3effe153bc
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 26 additions and 12 deletions

View file

@ -537,9 +537,11 @@ static uint32_t pointer_drag_button(struct wlr_seat_pointer_grab *grab,
drag->source->dnd_drop(drag->source);
}
drag->source->offer->in_ask =
drag->source->current_dnd_action ==
WL_DATA_DEVICE_MANAGER_DND_ACTION_ASK;
if (drag->source->offer != NULL) {
drag->source->offer->in_ask =
drag->source->current_dnd_action ==
WL_DATA_DEVICE_MANAGER_DND_ACTION_ASK;
}
struct wlr_drag_drop_event event = {
.drag = drag,