Top level windows with 0 width or height are created with a size of 1x1 in the X11 driver. I've added some code to make sure those windows are never mapped while the size <= 0.