aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorSergey Nazaryev <sergey@nazaryev.com>2020-10-10 18:13:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-11 17:27:07 +0000
commite842f4936740477a28357e8238455253aa2f02de (patch)
tree7ce16825a017c9740147f4e06501575cc4eef418 /selection.c
parentconfig: bind shift+insert to primary-paste by default (diff)
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.
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/selection.c b/selection.c
index 6cfacc02..7c814467 100644
--- a/selection.c
+++ b/selection.c
@@ -1381,8 +1381,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;