set backing_store and win_gravity before reparenting