summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xsetroot.c23
-rw-r--r--xtest.c9
2 files changed, 32 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
diff --git a/xtest.c b/xtest.c
new file mode 100644
index 0000000..3e97161
--- /dev/null
+++ b/xtest.c
@@ -0,0 +1,9 @@
+
+
+
+int main(void)
+{
+
+
+
+} \ No newline at end of file