window: initialize custom_frame_extents
window: fix warning about uninitialized variable usage