fix windowed mode canvas not auto-showing