summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c8
1 files changed, 8 insertions, 0 deletions
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
1084 return EVENT_PASSTHROUGH; 1084 return EVENT_PASSTHROUGH;
1085} 1085}
1086 1086
1087static void clip_test_cb(void *data, const char *type, int fd) {
1088 const char *str = data;
1089 write(fd, str, strlen(str));
1090 close(fd);
1091}
1092
1087static void handle_wlc_ready(void) { 1093static void handle_wlc_ready(void) {
1088 sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue"); 1094 sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue");
1095 const char *type = "text/plain;charset=utf-8";
1096 wlc_set_selection("test", &type, 1, &clip_test_cb);
1089 // Execute commands until there are none left 1097 // Execute commands until there are none left
1090 config->active = true; 1098 config->active = true;
1091 while (config->cmd_queue->length) { 1099 while (config->cmd_queue->length) {