slock

My build of the suckless screenlocker.
Log | Files | Refs | README | LICENSE

commit 15a098bb27c75612fb91aac7344ad47949517fa5
parent 50bc1a788e8900cb40e8a64a22ddf99393dbe788
Author: Anselm R. Garbe <arg@10kloc.org>
Date:   Wed, 11 Oct 2006 16:46:55 +0200

adding a coffee mug cursor
Diffstat:
Mslock.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/slock.c b/slock.c @@ -8,6 +8,7 @@ #include <string.h> #include <unistd.h> #include <sys/types.h> +#include <X11/cursorfont.h> #include <X11/keysym.h> #include <X11/Xlib.h> #include <X11/Xutil.h> @@ -52,6 +53,8 @@ main(int argc, char **argv) { DisplayWidth(dpy, screen), DisplayHeight(dpy, screen), 0, DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen), CWOverrideRedirect | CWBackPixel, &wa); + + XDefineCursor(dpy, w, XCreateFontCursor(dpy, XC_coffee_mug)); XMapRaised(dpy, w); XSync(dpy, False);