adding a coffee mug cursor
This commit is contained in:
parent
50bc1a788e
commit
15a098bb27
3
slock.c
3
slock.c
|
@ -8,6 +8,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <X11/cursorfont.h>
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
@ -52,6 +53,8 @@ main(int argc, char **argv) {
|
||||||
DisplayWidth(dpy, screen), DisplayHeight(dpy, screen),
|
DisplayWidth(dpy, screen), DisplayHeight(dpy, screen),
|
||||||
0, DefaultDepth(dpy, screen), CopyFromParent,
|
0, DefaultDepth(dpy, screen), CopyFromParent,
|
||||||
DefaultVisual(dpy, screen), CWOverrideRedirect | CWBackPixel, &wa);
|
DefaultVisual(dpy, screen), CWOverrideRedirect | CWBackPixel, &wa);
|
||||||
|
|
||||||
|
XDefineCursor(dpy, w, XCreateFontCursor(dpy, XC_coffee_mug));
|
||||||
XMapRaised(dpy, w);
|
XMapRaised(dpy, w);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue