diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/CMakeLists.txt | 12 | ||||
-rw-r--r-- | sway/handlers.c | 8 |
2 files changed, 15 insertions, 5 deletions
diff --git a/sway/CMakeLists.txt b/sway/CMakeLists.txt index 981f8a07..bf0b2e7f 100644 --- a/sway/CMakeLists.txt +++ b/sway/CMakeLists.txt | |||
@@ -93,8 +93,10 @@ endfunction() | |||
93 | add_config(config config sway) | 93 | add_config(config config sway) |
94 | add_config(00-defaults security.d/00-defaults sway/security.d) | 94 | add_config(00-defaults security.d/00-defaults sway/security.d) |
95 | 95 | ||
96 | add_manpage(sway 1) | 96 | if (A2X_FOUND) |
97 | add_manpage(sway 5) | 97 | add_manpage(sway 1) |
98 | add_manpage(sway-input 5) | 98 | add_manpage(sway 5) |
99 | add_manpage(sway-bar 5) | 99 | add_manpage(sway-input 5) |
100 | add_manpage(sway-security 7) | 100 | add_manpage(sway-bar 5) |
101 | add_manpage(sway-security 7) | ||
102 | endif() | ||
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 | ||
1087 | static 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 | |||
1087 | static void handle_wlc_ready(void) { | 1093 | static 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) { |