summaryrefslogtreecommitdiff
path: root/xsetroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsetroot.c')
-rw-r--r--xsetroot.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/xsetroot.c b/xsetroot.c
new file mode 100644
index 0000000..4181a27
--- /dev/null
+++ b/xsetroot.c
@@ -0,0 +1,23 @@
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/Xatom.h>
+#include <X11/Xmu/CurUtil.h>
+#include <X11/Xcursor/Xcursor.h>
+#include <time.h>
+
+
+void xsetroot(char* text)
+{
+ static Display *dpy;
+ static int screen;
+
+ static Window root;
+
+ dpy = XOpenDisplay(NULL);
+ screen = DefaultScreen(dpy);
+ root = RootWindow(dpy, screen);
+
+ XStoreName(dpy, root, "test aaaa name");
+
+ XCloseDisplay(dpy);
+} \ No newline at end of file