* changed ui to -cursor xcursor:file=<filename>
--HG-- extra : convert_revision : svn%3Aeebe1cee-a9af-4fe4-bd26-ad572b19c5ab/trunk%4028
This commit is contained in:
parent
eee940c36c
commit
c8a3e4fb82
1 changed files with 9 additions and 4 deletions
|
@ -35,13 +35,18 @@ static int alock_cursor_xcursor_init(const char* args, struct aXInfo* xinfo) {
|
||||||
if (!xinfo)
|
if (!xinfo)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!args || strlen(args) < 8) {
|
if (!args || strlen(args) < 13) {
|
||||||
printf("alock: error, missing arguments for [xcursor]\n");
|
printf("alock: error, missing arguments for [xcursor].\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(cursor = XcursorFilenameLoadCursor(xinfo->display, &args[8]))) {
|
if (strstr(args, "xcursor:") != args || strstr(&args[8], "file=") != &args[8]) {
|
||||||
printf("alock: error, couldnt load [%s]\n", &args[8]);
|
printf("alock: error, wrong arguments for [xcursor].\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(cursor = XcursorFilenameLoadCursor(xinfo->display, &args[13]))) {
|
||||||
|
printf("alock: error, couldnt load [%s]\n", &args[13]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue