aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-06-20 18:57:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-06-20 18:57:23 +0000
commit0d22e9fa01a8149af453ebe57b5e4ef67f00a4d9 (patch)
treeb13e98102f628f3cc47df9c47fb4eb3dcbbd1baa /selection.c
parentselection: ignore drag-and-drops with unsupported mime-types (diff)
selection: explicitly reject *all* dnd offers not targeting the grid
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index 20e2d8d8..63170b98 100644
--- a/selection.c
+++ b/selection.c
@@ -2343,6 +2343,7 @@ enter(void *data, struct wl_data_device *wl_data_device, uint32_t serial,
/* Either terminal is already busy sending paste data, or mouse
* 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);
}