From da92abef312ee7cbc2fceeb49c950a792ce7c0c5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 22 Nov 2019 21:51:53 +0100 Subject: selection: we already have a direct pointer to the clipboard struct --- selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selection.c') 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); -- cgit v1.3