selection: explicitly reject *all* dnd offers not targeting the grid

This commit is contained in:
Daniel Eklöf 2022-06-20 20:57:23 +02:00
parent 2e4da6fbf6
commit 0d22e9fa01
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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 isnt over the grid */
seat->clipboard.window = NULL;
wl_data_offer_accept(offer, serial, NULL);
wl_data_offer_set_actions(offer, 0, 0);
}