summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
authorfadhil riyanto <me@fadev.org>2024-08-17 17:25:30 +0700
committerfadhil riyanto <me@fadev.org>2024-08-17 17:25:30 +0700
commit405dfcd49f65cc16c8d120f5a28257e82a729ef9 (patch)
tree906717c4b607ec14d5f40311c83d11cc42d4205e /init.c
parent4e24d62b0f928cc9d5c8ba95ec973385257e59b9 (diff)
add X11 include and data struct
Signed-off-by: fadhil riyanto <me@fadev.org>
Diffstat (limited to 'init.c')
-rw-r--r--init.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/init.c b/init.c
index 29d232b..d880ad1 100644
--- a/init.c
+++ b/init.c
@@ -12,6 +12,11 @@
#include <string.h>
#include "config.h"
#include <stdlib.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/Xatom.h>
+#include <X11/Xmu/CurUtil.h>
+#include <X11/Xcursor/Xcursor.h>
#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;