ensure _win is set when updating graphics

Fixes #2348