diff options
-rw-r--r-- | slock.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,7 @@ | |||
8 | #include <string.h> | 8 | #include <string.h> |
9 | #include <unistd.h> | 9 | #include <unistd.h> |
10 | #include <sys/types.h> | 10 | #include <sys/types.h> |
11 | #include <X11/cursorfont.h> | ||
11 | #include <X11/keysym.h> | 12 | #include <X11/keysym.h> |
12 | #include <X11/Xlib.h> | 13 | #include <X11/Xlib.h> |
13 | #include <X11/Xutil.h> | 14 | #include <X11/Xutil.h> |
@@ -52,6 +53,8 @@ main(int argc, char **argv) { | |||
52 | DisplayWidth(dpy, screen), DisplayHeight(dpy, screen), | 53 | DisplayWidth(dpy, screen), DisplayHeight(dpy, screen), |
53 | 0, DefaultDepth(dpy, screen), CopyFromParent, | 54 | 0, DefaultDepth(dpy, screen), CopyFromParent, |
54 | DefaultVisual(dpy, screen), CWOverrideRedirect | CWBackPixel, &wa); | 55 | DefaultVisual(dpy, screen), CWOverrideRedirect | CWBackPixel, &wa); |
56 | |||
57 | XDefineCursor(dpy, w, XCreateFontCursor(dpy, XC_coffee_mug)); | ||
55 | XMapRaised(dpy, w); | 58 | XMapRaised(dpy, w); |
56 | XSync(dpy, False); | 59 | XSync(dpy, False); |
57 | 60 | ||