Skip to content

Commit

Permalink
avoid indirection in Window _set_allow_screensaver
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant authored Feb 2, 2017
1 parent ba8012e commit 49ccdba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kivy/core/window/window_sdl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ def _set_minimum_size(self, *args):
'bigger than 0 for the size restriction to take effect.')

def _set_allow_screensaver(self, *args):
allow_screensaver = self.allow_screensaver
self._win.set_allow_screensaver(allow_screensaver)
self._win.set_allow_screensaver(self.allow_screensaver)

def _event_filter(self, action):
from kivy.app import App
Expand Down

0 comments on commit 49ccdba

Please sign in to comment.