ensure _win is set when updating graphics
Merge pull request #2349 from kived/textinput-win

ensure _win is set when updating graphics