mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: text_to_clipboard: assert the clipboard serial is not 0
This commit is contained in:
parent
f9e7ae8a89
commit
fc7069e1a6
1 changed files with 1 additions and 0 deletions
|
|
@ -557,6 +557,7 @@ text_to_clipboard(struct terminal *term, char *text, uint32_t serial)
|
|||
wl_data_device_set_selection(term->wl->data_device, clipboard->data_source, serial);
|
||||
|
||||
/* Needed when sending the selection to other client */
|
||||
assert(serial != 0);
|
||||
clipboard->serial = serial;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue