From d95dd062aaaac9c7db2d0a3ab9d1f1198cfcbcea Mon Sep 17 00:00:00 2001 From: Sergey Nazaryev Date: Sat, 10 Oct 2020 21:13:08 +0300 Subject: 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. --- selection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'selection.c') 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; -- cgit v1.3