diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | init.c | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ba1915f..567d729 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,3 +2,5 @@ cmake_minimum_required(VERSION 3.10) project(xsetroot-daemon) add_executable(xsetrootd init.c) + +target_link_libraries(xsetrootd -lX11)
\ No newline at end of file @@ -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; |