Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchen902 authored and emersion committed Feb 2, 2019
1 parent 28f11ae commit f24e172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/data_device/wlr_drag.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ bool seat_client_start_drag(struct wlr_seat_client *client,
seat->drag = drag; // TODO: unset this thing somewhere
seat->drag_serial = serial;

if (seat->drag_source != NULL) {
wl_list_remove(&seat->drag_source_destroy.link);
}
seat->drag_source = source;
if (source != NULL) {
seat->drag_source_destroy.notify = seat_handle_drag_source_destroy;
Expand Down

0 comments on commit f24e172

Please sign in to comment.