Fixing minor error with new X11 window factory func