Fix window_set_minimized