aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-06-21 17:46:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-21 17:46:31 +0000
commit206e9a10502b29483b9f7fc35df921716fe8d7c1 (patch)
treeb48850c786e805500170c3ac7dca454de06fde06 /selection.c
parentselection: reject dnd offers with unsupported mime-types (diff)
selection: wl_data_offer_set_action: use enum values instead of magic integers
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/selection.c b/selection.c
index c62bdb2b..d4887382 100644
--- a/selection.c
+++ b/selection.c
@@ -2348,7 +2348,10 @@ reject_offer:
* pointer isn’t 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