selection: it's an error to call offset_accept() on non-drag-and-drop

This commit is contained in:
Daniel Eklöf 2019-07-11 16:26:53 +02:00
parent 3f02a7354e
commit e8b6705ab8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -279,9 +279,6 @@ selection_from_clipboard(struct terminal *term, uint32_t serial)
if (clipboard->data_offer == NULL)
return;
wl_data_offer_accept(clipboard->data_offer, serial, "text/plain");
wl_data_offer_accept(clipboard->data_offer, serial, "text/plain;charset=utf-8");
int fds[2];
if (pipe2(fds, O_CLOEXEC) == -1) {