From 23a1e944027265c70654d7395362641b59428062 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 4 Jul 2017 16:00:13 -0400 Subject: Make asciidoc (and man pages) optional And remove it from the build --- sway/handlers.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sway/handlers.c') diff --git a/sway/handlers.c b/sway/handlers.c index 39261e3d..052789ca 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -1084,8 +1084,16 @@ bool handle_pointer_scroll(wlc_handle view, uint32_t time, const struct wlc_modi return EVENT_PASSTHROUGH; } +static void clip_test_cb(void *data, const char *type, int fd) { + const char *str = data; + write(fd, str, strlen(str)); + close(fd); +} + static void handle_wlc_ready(void) { sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue"); + const char *type = "text/plain;charset=utf-8"; + wlc_set_selection("test", &type, 1, &clip_test_cb); // Execute commands until there are none left config->active = true; while (config->cmd_queue->length) { -- cgit v1.2.3