toon_root.c: fix handling of XGetWindowProperty