set backing_store and win_gravity to known values before reparenting