diff options
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c index 9b19a2f0..303d2776 100644 --- a/sway/main.c +++ b/sway/main.c @@ -3,6 +3,7 @@ #include <stdbool.h> #include <wlc/wlc.h> #include "config.h" +#include "handlers.h" struct sway_config *config; @@ -27,7 +28,19 @@ void load_config() { int main(int argc, char **argv) { load_config(); - static struct wlc_interface interface = { }; + static struct wlc_interface interface = { + .output = { + .created = handle_output_created, + .destroyed = handle_output_destroyed, + .resolution = handle_output_resolution_change + }, + .view = { + .created = handle_view_created, + .destroyed = handle_view_destroyed, + .focus = handle_view_focus + } + }; + if (!wlc_init(&interface, argc, argv)) { return 1; } |