diff options
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comet.c b/src/comet.c index b6b36c5..5feab31 100644 --- a/src/comet.c +++ b/src/comet.c @@ -11,6 +11,7 @@ #include "draw.h" #include "connect.h" #include "state.h" +#include "dwm.h" #define EVEN(n) ((int)(n) - ((int)(n) % 2 != 0)) @@ -364,6 +365,8 @@ int main(int argc, char **argv) button_group_append(group, menu); state_add_button(state, group); + DwmIpc *dwm = dwm_create(state, "/tmp/dwm.sock"); + connect_attach_state(con, state); connect_attach_source(con); @@ -387,6 +390,7 @@ int main(int argc, char **argv) g_list_free(menu_ctx.toggled); // Buttons are freed by state_destroy + dwm_destroy(dwm); state_destroy(state); draw_destroy(draw); window_destroy(win); |
