mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
seat: use separate 'enter' serials for keyboard and mouse
This commit is contained in:
parent
4e48d550ef
commit
71584aed38
5 changed files with 14 additions and 12 deletions
7
osc.c
7
osc.c
|
|
@ -68,13 +68,13 @@ osc_to_clipboard(struct terminal *term, const char *target,
|
|||
|
||||
if (to_clipboard) {
|
||||
char *copy = strdup(decoded);
|
||||
if (!text_to_clipboard(seat, term, copy, seat->input_serial))
|
||||
if (!text_to_clipboard(seat, term, copy, seat->kbd.serial))
|
||||
free(copy);
|
||||
}
|
||||
|
||||
if (to_primary) {
|
||||
char *copy = strdup(decoded);
|
||||
if (!text_to_primary(seat, term, copy, seat->input_serial))
|
||||
if (!text_to_primary(seat, term, copy, seat->kbd.serial))
|
||||
free(copy);
|
||||
}
|
||||
|
||||
|
|
@ -190,8 +190,7 @@ osc_from_clipboard(struct terminal *term, const char *source)
|
|||
switch (src) {
|
||||
case 'c':
|
||||
text_from_clipboard(
|
||||
seat, term, seat->input_serial,
|
||||
&from_clipboard_cb, &from_clipboard_done, ctx);
|
||||
seat, term, &from_clipboard_cb, &from_clipboard_done, ctx);
|
||||
break;
|
||||
|
||||
case 's':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue