mirror of https://github.com/kivy/kivy.git
set Window.focus to false when the window is started in a hidden state
This commit is contained in:
parent
4e429deb88
commit
1bd4b1a0bb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue