fix crash in cursor code (which is broken)
fix crash in cursor code (which is broken)

jinn-alt/icewm,bedna-KU/icewm,dicej/icewm,jinn-alt/icewm,bedna-KU/icewm,dicej/icewm,dicej/icewm,dicej/icewm,bedna-KU/icewm,jinn-alt/icewm