diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-22 20:51:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-22 20:55:46 +0000 |
| commit | da92abef312ee7cbc2fceeb49c950a792ce7c0c5 (patch) | |
| tree | d09a1f7f58d6bd3937d4cdaa55839b2858d19c23 | |
| parent | keyboard repeat: pass current input serial to keyboard_key() (diff) | |
selection: we already have a direct pointer to the clipboard struct
| -rw-r--r-- | selection.c | 2 |
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); |
