diff options
author | fadhil riyanto <me@fadev.org> | 2024-08-17 17:25:30 +0700 |
---|---|---|
committer | fadhil riyanto <me@fadev.org> | 2024-08-17 17:25:30 +0700 |
commit | 405dfcd49f65cc16c8d120f5a28257e82a729ef9 (patch) | |
tree | 906717c4b607ec14d5f40311c83d11cc42d4205e /init.c | |
parent | 4e24d62b0f928cc9d5c8ba95ec973385257e59b9 (diff) |
add X11 include and data struct
Signed-off-by: fadhil riyanto <me@fadev.org>
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; |