data-device: make sources inert, rename cancel to destroy

This commit is contained in:
emersion 2018-12-09 11:50:28 +01:00
parent 4cb0697e57
commit 1150ff13ce
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 45 additions and 38 deletions

View file

@ -159,7 +159,7 @@ void wlr_seat_destroy(struct wlr_seat *seat) {
if (seat->selection_source) {
wl_list_remove(&seat->selection_source_destroy.link);
wlr_data_source_cancel(seat->selection_source);
wlr_data_source_destroy(seat->selection_source);
seat->selection_source = NULL;
}