aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-08 14:45:26 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-08 14:45:26 +0000
commitc47082506714f458e999f6ff1bf3099dfc4c0c0c (patch)
tree564294a12d0eec2277856d1ad7c6a8bab89decde /osc.c
parentmeson/PKGBUILD: bump fcft requirement to 2.2.0 (diff)
wip: multi-seat support
Compiles and runs, but mouse, clipboard and other things have been disabled.
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c13
1 files changed, 10 insertions, 3 deletions
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