selection: wl_data_offer_set_action: use enum values instead of magic integers

This commit is contained in:
Daniel Eklöf 2022-06-21 19:46:31 +02:00
parent 6d4d4502e9
commit 206e9a1050
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2348,7 +2348,10 @@ reject_offer:
* pointer isnt over the grid */
seat->clipboard.window = NULL;
wl_data_offer_accept(offer, serial, NULL);
wl_data_offer_set_actions(offer, 0, 0);
wl_data_offer_set_actions(
offer,
WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE,
WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE);
}
static void