summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-07-26 19:11:57 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-07-26 19:12:31 -0400
commit52a790c07d929c1a11db9b816e31eccf3ed55e6d (patch)
tree4e698295e51018a378b7430055a54f15bdfb4248
parentMerge pull request #1288 from johalun/master-securityconf-freebsd (diff)
downloadsway-52a790c07d929c1a11db9b816e31eccf3ed55e6d.tar.gz
sway-52a790c07d929c1a11db9b816e31eccf3ed55e6d.tar.zst
sway-52a790c07d929c1a11db9b816e31eccf3ed55e6d.zip
Remove test clipboard code0.14.0
-rw-r--r--sway/handlers.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 5fae2f7a..fd174ac9 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -1083,16 +1083,8 @@ bool handle_pointer_scroll(wlc_handle view, uint32_t time, const struct wlc_modi
1083 return EVENT_PASSTHROUGH; 1083 return EVENT_PASSTHROUGH;
1084} 1084}
1085 1085
1086static void clip_test_cb(void *data, const char *type, int fd) {
1087 const char *str = data;
1088 write(fd, str, strlen(str));
1089 close(fd);
1090}
1091
1092static void handle_wlc_ready(void) { 1086static void handle_wlc_ready(void) {
1093 sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue"); 1087 sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue");
1094 const char *type = "text/plain;charset=utf-8";
1095 wlc_set_selection("test", &type, 1, &clip_test_cb);
1096 // Execute commands until there are none left 1088 // Execute commands until there are none left
1097 config->active = true; 1089 config->active = true;
1098 while (config->cmd_queue->length) { 1090 while (config->cmd_queue->length) {