aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-22 20:51:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-22 20:55:46 +0000
commitda92abef312ee7cbc2fceeb49c950a792ce7c0c5 (patch)
treed09a1f7f58d6bd3937d4cdaa55839b2858d19c23 /selection.c
parentkeyboard repeat: pass current input serial to keyboard_key() (diff)
selection: we already have a direct pointer to the clipboard struct
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/selection.c b/selection.c
index 23eb4450..de7962ae 100644
--- a/selection.c
+++ b/selection.c
@@ -530,7 +530,7 @@ text_to_clipboard(struct terminal *term, char *text, uint32_t serial)
{
struct wl_clipboard *clipboard = &term->wl->clipboard;
- if (term->wl->clipboard.data_source != NULL) {
+ if (clipboard->data_source != NULL) {
/* Kill previous data source */
assert(clipboard->serial != 0);
wl_data_device_set_selection(term->wl->data_device, NULL, clipboard->serial);