aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--selection.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 33d5e98d..338ad3dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -76,6 +76,7 @@
* Crash after either resizing a window or changing the font size if
there were sixels present in the scrollback while doing so.
* _Send Device Attributes_ to only send a response if `Ps == 0`.
+* Paste from primary when clipboard is empty.
### Security
diff --git a/selection.c b/selection.c
index 2a2e8034..7475f229 100644
--- a/selection.c
+++ b/selection.c
@@ -1382,8 +1382,8 @@ selection_from_primary(struct seat *seat, struct terminal *term)
return;
}
- struct wl_clipboard *clipboard = &seat->clipboard;
- if (clipboard->data_offer == NULL)
+ struct wl_primary *primary = &seat->primary;
+ if (primary->data_offer == NULL)
return;
term->is_sending_paste_data = true;