From c47082506714f458e999f6ff1bf3099dfc4c0c0c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 8 Jul 2020 16:45:26 +0200 Subject: wip: multi-seat support Compiles and runs, but mouse, clipboard and other things have been disabled. --- osc.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'osc.c') diff --git a/osc.c b/osc.c index a2702595..1a72cb12 100644 --- a/osc.c +++ b/osc.c @@ -52,6 +52,9 @@ osc_to_clipboard(struct terminal *term, const char *target, } } + (void)to_clipboard; + (void)to_primary; +#if 0 if (to_clipboard) { char *copy = strdup(decoded); if (!text_to_clipboard(term, copy, term->wl->input_serial)) @@ -63,7 +66,7 @@ osc_to_clipboard(struct terminal *term, const char *target, if (!text_to_primary(term, copy, term->wl->input_serial)) free(copy); } - +#endif free(decoded); } @@ -73,6 +76,7 @@ struct clip_context { int idx; }; +#if 0 static void from_clipboard_cb(const char *text, size_t size, void *user) { @@ -117,7 +121,8 @@ from_clipboard_cb(const char *text, size_t size, void *user) term_to_slave(term, chunk, strlen(chunk)); free(chunk); } - +#endif +#if 0 static void from_clipboard_done(void *user) { @@ -133,7 +138,7 @@ from_clipboard_done(void *user) term_to_slave(term, "\033\\", 2); free(ctx); } - +#endif static void osc_from_clipboard(struct terminal *term, const char *source) { @@ -158,6 +163,7 @@ osc_from_clipboard(struct terminal *term, const char *source) struct clip_context *ctx = malloc(sizeof(*ctx)); *ctx = (struct clip_context) {.term = term}; +#if 0 switch (src) { case 'c': text_from_clipboard( @@ -170,6 +176,7 @@ osc_from_clipboard(struct terminal *term, const char *source) text_from_primary(term, &from_clipboard_cb, &from_clipboard_done, ctx); break; } +#endif } static void -- cgit v1.3