X11 problem wasn't caused by ccWindowUpdateDisplay, but by a mysterious bug