From 405dfcd49f65cc16c8d120f5a28257e82a729ef9 Mon Sep 17 00:00:00 2001 From: fadhil riyanto Date: Sat, 17 Aug 2024 17:25:30 +0700 Subject: add X11 include and data struct Signed-off-by: fadhil riyanto --- init.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'init.c') diff --git a/init.c b/init.c index 29d232b..d880ad1 100644 --- a/init.c +++ b/init.c @@ -12,6 +12,11 @@ #include #include "config.h" #include +#include +#include +#include +#include +#include #define debug(x) printf("%s\n", x) #define IBUF_LEN (10 * (sizeof(struct inotify_event) + strlen(BAT0_DIR) + 1)) @@ -24,6 +29,14 @@ struct gc_data { off_t file_sz; }; +struct xorg_data { + Display *dpy; + int screen; + Window root; +}; + + + void signal_handler(int signal) { need_exit = 1; -- cgit v1.2.3