diff options
author | Drew DeVault <[email protected]> | 2015-08-06 08:24:14 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-06 08:24:14 -0400 |
commit | 82bc36c6812b24fca27c2ec176e2c2998e4df6d5 (patch) | |
tree | e43f61300ecb8f868bf9e40e43bdbd60bf02ecfb /sway/main.c | |
parent | 47b28bd335fe279df35f746d5797a1071cb4b989 (diff) |
Start to build out window management functions
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; } |