mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
selection: wl_data_offer_set_action: use enum values instead of magic integers
This commit is contained in:
parent
6d4d4502e9
commit
206e9a1050
1 changed files with 4 additions and 1 deletions
|
|
@ -2348,7 +2348,10 @@ reject_offer:
|
||||||
* pointer isn’t over the grid */
|
* pointer isn’t over the grid */
|
||||||
seat->clipboard.window = NULL;
|
seat->clipboard.window = NULL;
|
||||||
wl_data_offer_accept(offer, serial, 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
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue