term: wayland struct is now not a part of the terminal struct

We do however need access to it, so provide a pointer. The difference
is that now we can have a *single* wayland instance, but multiple
terminal instances.
This commit is contained in:
Daniel Eklöf 2019-10-27 18:51:14 +01:00
parent 33e4b8a5b8
commit 1adab32906
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 115 additions and 114 deletions

6
osc.c
View file

@ -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->wl.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->wl.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->wl.input_serial, &from_clipboard_cb, &ctx);
text_from_clipboard(term, term->wl->input_serial, &from_clipboard_cb, &ctx);
break;
case 'p':