mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
selection: we already have a direct pointer to the clipboard struct
This commit is contained in:
parent
34eac2dbe3
commit
da92abef31
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue