From ef94d81050bb4d3b90b69441cbff97440e1f3664 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 8 Feb 2024 11:02:14 +0100 Subject: Add partial dwm support --- src/comet.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/comet.c') 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); -- cgit v1.2.3