aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-09 09:20:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-09 09:20:46 +0000
commit71584aed388935908588686e5df7ec42855f3698 (patch)
tree45f18ee6e99049470da32290ebf18d745d7619ce /osc.c
parentmulti-seat: improve handling of multiple (mouse) pointers (diff)
seat: use separate 'enter' serials for keyboard and mouse
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/osc.c b/osc.c
index 3183f196..42bef722 100644
--- a/osc.c
+++ b/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':