1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

a fix for the definable cursor code

This commit is contained in:
dan
2001-12-21 11:00:45 +00:00
parent f968d88070
commit 520a6cd0e4
4 changed files with 5 additions and 6 deletions

View File

@@ -3460,13 +3460,13 @@ setMultiByte(WScreen *scr, WDefaultEntry *entry, char *value, void *foo)
static int
setCursor(WScreen *scr, WDefaultEntry *entry, Cursor *cursor, long index)
{
if (None != wCursor[index]) {
if (wCursor[index] != None) {
XFreeCursor(dpy, wCursor[index]);
}
wCursor[index] = *cursor;
if ((WCUR_ROOT == index) && (None != *cursor)) {
if (index==WCUR_ROOT && *cursor!=None) {
XDefineCursor(dpy, scr->root_win, *cursor);
}