Skip to content

Commit 1bd4b1a

Browse files
author
dessant
committed
set Window.focus to false when the window is started in a hidden state
1 parent 4e429de commit 1bd4b1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kivy/core/window/window_sdl2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ def create_window(self, *largs):
246246
# will be fired.
247247
self._pos = (0, 0)
248248
self._set_minimum_size()
249+
250+
if state == 'hidden':
251+
self._focus = False
249252
else:
250253
w, h = self.system_size
251254
self._win.resize_window(w, h)

0 commit comments

Comments
 (0)