aboutsummaryrefslogtreecommitdiff
path: root/src/dwm.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-08 00:40:38 +0100
committerFederico Angelilli <code@fedang.net>2024-03-08 00:45:38 +0100
commit4df262ade044448f83092ab157a15b4a3f170eec (patch)
tree2f01ce7978e115fed595d0a908e0827b934eddac /src/dwm.h
parent04275df210744923651c6119e64301a8e2d45e77 (diff)
Refactor dwm ipc send and add get_tags
Diffstat (limited to 'src/dwm.h')
-rw-r--r--src/dwm.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/dwm.h b/src/dwm.h
index be016e6..566360f 100644
--- a/src/dwm.h
+++ b/src/dwm.h
@@ -1,9 +1,23 @@
#ifndef COMET_DWM_H
#define COMET_DWM_H
+#include <glib.h>
+#include <gio/gio.h>
+
#include "state.h"
-typedef struct DwmIpc DwmIpc;
+typedef struct {
+ GSocket *socket;
+ GSource *source;
+ State *state;
+ Color color;
+ Color text_color;
+ Color selected;
+ Button *tags[9];
+ Button *title;
+ bool change_title;
+ bool hidden_title;
+} DwmIpc;
DwmIpc *dwm_create(State *state, const char *socket);