Variable Window._firstDrawCalled

set when first draw is called: don't handle mouse/key input until draw (layout) is called

class Window
{
  // ...
  bool _firstDrawCalled = false;
  // ...
}