set Window.focus to false when the window is started in a hidden state

This commit is contained in:
dessant 2016-01-05 00:39:21 +02:00
parent 4e429deb88
commit 1bd4b1a0bb
1 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,9 @@ class WindowSDL(WindowBase):
# will be fired.
self._pos = (0, 0)
self._set_minimum_size()
if state == 'hidden':
self._focus = False
else:
w, h = self.system_size
self._win.resize_window(w, h)