clear context states before closing a window newapi

(0) -300 -100 -30 -10 -1 +1 +10 tip

mercurial