window: changed window_t handle structure