Guest User

Untitled

a guest
Aug 13th, 2016
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.24 KB | None | 0 0
  1. diff --git a/kivy/core/window/window_sdl2.py b/kivy/core/window/window_sdl2.py
  2. index 267f4d5..35dca74 100644
  3. --- a/kivy/core/window/window_sdl2.py
  4. +++ b/kivy/core/window/window_sdl2.py
  5. @@ -199,7 +199,6 @@ class WindowSDL(WindowBase):
  6.          from kivy.app import App
  7.          if action == 'app_terminating':
  8.              EventLoop.quit = True
  9. -            self.close()
  10.  
  11.          elif action == 'app_lowmemory':
  12.              self.dispatch('on_memorywarning')
  13. @@ -412,7 +411,6 @@ class WindowSDL(WindowBase):
  14.                  if self.dispatch('on_request_close'):
  15.                      continue
  16.                  EventLoop.quit = True
  17. -                self.close()
  18.                  break
  19.  
  20.              elif action in ('fingermotion', 'fingerdown', 'fingerup'):
  21. @@ -618,7 +616,6 @@ class WindowSDL(WindowBase):
  22.              action, args = event[0], event[1:]
  23.              if action == 'quit':
  24.                  EventLoop.quit = True
  25. -                self.close()
  26.                  break
  27.              elif action == 'app_willenterforeground':
  28.                  break
  29. @@ -643,6 +640,7 @@ class WindowSDL(WindowBase):
  30.                      raise
  31.                  else:
  32.                      pass
  33. +        self.close()
  34.  
  35.      #
  36.      # Pygame wrapper
Advertisement
Add Comment
Please, Sign In to add comment