This commit is contained in:
John Chen 2019-02-02 16:03:09 +08:00 committed by emersion
parent 28f11aec31
commit f24e17259e
1 changed files with 3 additions and 0 deletions

View File

@ -490,6 +490,9 @@ bool seat_client_start_drag(struct wlr_seat_client *client,
seat->drag = drag; // TODO: unset this thing somewhere seat->drag = drag; // TODO: unset this thing somewhere
seat->drag_serial = serial; seat->drag_serial = serial;
if (seat->drag_source != NULL) {
wl_list_remove(&seat->drag_source_destroy.link);
}
seat->drag_source = source; seat->drag_source = source;
if (source != NULL) { if (source != NULL) {
seat->drag_source_destroy.notify = seat_handle_drag_source_destroy; seat->drag_source_destroy.notify = seat_handle_drag_source_destroy;