aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-27 17:43:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-27 17:43:07 +0000
commit9f0b1f94c284e76ff1579e7f34f4a7418ef98b02 (patch)
treed9ac666de7624b6960bb590159a9d08c68fa2761 /osc.c
parentwayland: add back-pointer to terminal (diff)
wayland: change all wayland callbacks to take a wayland pointer
Instead of passing the terminal to the wayland callbacks, pass a 'struct wayland' pointer.
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/osc.c b/osc.c
index 694547c8..b506f0bb 100644
--- a/osc.c
+++ b/osc.c
@@ -30,14 +30,14 @@ osc_to_clipboard(struct terminal *term, const char *target,
switch (*t) {
case 'c': {
char *copy = strdup(decoded);
- if (!text_to_clipboard(term, copy, term->input_serial))
+ if (!text_to_clipboard(term, copy, term->wl.input_serial))
free(copy);
break;
}
case 'p': {
char *copy = strdup(decoded);
- if (!text_to_primary(term, copy, term->input_serial))
+ if (!text_to_primary(term, copy, term->wl.input_serial))
free(copy);
break;
}
@@ -130,7 +130,7 @@ osc_from_clipboard(struct terminal *term, const char *source)
switch (src) {
case 'c':
- text_from_clipboard(term, term->input_serial, &from_clipboard_cb, &ctx);
+ text_from_clipboard(term, term->wl.input_serial, &from_clipboard_cb, &ctx);
break;
case 'p':