mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
parent
043b741008
commit
9e1746cc29
2 changed files with 8 additions and 2 deletions
|
|
@ -1370,7 +1370,9 @@ text_from_clipboard(struct seat *seat, struct terminal *term,
|
|||
void (*done)(void *user), void *user)
|
||||
{
|
||||
struct wl_clipboard *clipboard = &seat->clipboard;
|
||||
if (clipboard->data_offer == NULL) {
|
||||
if (clipboard->data_offer == NULL ||
|
||||
clipboard->mime_type == DATA_OFFER_MIME_UNSET)
|
||||
{
|
||||
done(user);
|
||||
return;
|
||||
}
|
||||
|
|
@ -1512,7 +1514,9 @@ text_from_primary(
|
|||
}
|
||||
|
||||
struct wl_primary *primary = &seat->primary;
|
||||
if (primary->data_offer == NULL){
|
||||
if (primary->data_offer == NULL ||
|
||||
primary->mime_type == DATA_OFFER_MIME_UNSET)
|
||||
{
|
||||
done(user);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue