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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user