Xinqi Bao's Git
projects
/
slock.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
50bc1a7
)
adding a coffee mug cursor
author
Anselm R. Garbe <
[email protected]
>
Wed, 11 Oct 2006 14:46:55 +0000
(16:46 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Wed, 11 Oct 2006 14:46:55 +0000
(16:46 +0200)
slock.c
patch
|
blob
|
history
diff --git
a/slock.c
b/slock.c
index
0c02d96
..
db3aae0
100644
(file)
--- a/
slock.c
+++ b/
slock.c
@@
-8,6
+8,7
@@
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#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>
#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);
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);
XMapRaised(dpy, w);
XSync(dpy, False);