mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-23 01:40:12 -05:00
selection: use appropriate check for PRIMARY paste
Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.
This commit is contained in:
parent
8e161ed4e9
commit
d95dd062aa
2 changed files with 3 additions and 2 deletions
|
|
@ -76,6 +76,7 @@
|
||||||
* Crash after either resizing a window or changing the font size if
|
* Crash after either resizing a window or changing the font size if
|
||||||
there were sixels present in the scrollback while doing so.
|
there were sixels present in the scrollback while doing so.
|
||||||
* _Send Device Attributes_ to only send a response if `Ps == 0`.
|
* _Send Device Attributes_ to only send a response if `Ps == 0`.
|
||||||
|
* Paste from primary when clipboard is empty.
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
|
|
@ -1382,8 +1382,8 @@ selection_from_primary(struct seat *seat, struct terminal *term)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wl_clipboard *clipboard = &seat->clipboard;
|
struct wl_primary *primary = &seat->primary;
|
||||||
if (clipboard->data_offer == NULL)
|
if (primary->data_offer == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
term->is_sending_paste_data = true;
|
term->is_sending_paste_data = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue