From 206e9a10502b29483b9f7fc35df921716fe8d7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 21 Jun 2022 19:46:31 +0200 Subject: [PATCH] selection: wl_data_offer_set_action: use enum values instead of magic integers --- selection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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