projects
/
xicursorset.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README: mention also pkg-config as a build dependency
[xicursorset.git]
/
xicursorset.c
diff --git
a/xicursorset.c
b/xicursorset.c
index
e66644b
..
37faf80
100644
(file)
--- a/
xicursorset.c
+++ b/
xicursorset.c
@@
-71,17
+71,17
@@
int main(int argc, char *argv[])
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
-
- if (argc == 4)
+ if (argc == 4) {
theme = argv[3];
theme = argv[3];
- else
+ } else {
theme = XcursorGetTheme(dpy);
if (theme == NULL) {
fprintf(stderr, "Can't get cursor theme.\n");
return EXIT_FAILURE;
}
theme = XcursorGetTheme(dpy);
if (theme == NULL) {
fprintf(stderr, "Can't get cursor theme.\n");
return EXIT_FAILURE;
}
+ }
- image = XcursorShapeLoadImage(shape, theme, size);
+ image = XcursorShapeLoadImage(
(unsigned int)
shape, theme, size);
if (image == NULL) {
fprintf(stderr, "Can't get cursor image, check <shape> or <theme>.\n");
return EXIT_FAILURE;
if (image == NULL) {
fprintf(stderr, "Can't get cursor image, check <shape> or <theme>.\n");
return EXIT_FAILURE;