summaryrefslogtreecommitdiff
path: root/xsetroot.c
blob: 4181a27a1cfacf1019bbb1437a7ef7d1acb1ee74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}