mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 07:01:30 +00:00
[client] wayland: release ignored clipboard offers
This commit is contained in:
@@ -309,6 +309,10 @@ static void dataDeviceHandleSelection(void * opaque,
|
|||||||
struct DataOffer * extra = wl_data_offer_get_user_data(offer);
|
struct DataOffer * extra = wl_data_offer_get_user_data(offer);
|
||||||
if (!hasAnyMimetype(extra->mimetypes) || extra->isSelfCopy)
|
if (!hasAnyMimetype(extra->mimetypes) || extra->isSelfCopy)
|
||||||
{
|
{
|
||||||
|
wl_data_offer_set_user_data(offer, NULL);
|
||||||
|
for (enum LG_ClipboardData i = 0; i < LG_CLIPBOARD_DATA_NONE; ++i)
|
||||||
|
free(extra->mimetypes[i]);
|
||||||
|
free(extra);
|
||||||
waylandCBInvalidate();
|
waylandCBInvalidate();
|
||||||
wl_data_offer_destroy(offer);
|
wl_data_offer_destroy(offer);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user