Commit a84f784b authored by Philipp Hörist's avatar Philipp Hörist

Client: Register screensaver handler on all platforms

This is no problem because the signal is not emited if the platform
does not support it

Fixes #10152
parent afe212b7
Pipeline #5805 failed with stages
in 2 minutes and 28 seconds
......@@ -93,9 +93,8 @@ class Client(ConnectionHandlers):
self._idle_handler_id = Monitor.connect('state-changed',
self._idle_state_changed)
if sys.platform not in ('win32', 'darwin'):
self._screensaver_handler_id = app.app.connect(
'notify::screensaver-active', self._screensaver_state_changed)
self._screensaver_handler_id = app.app.connect(
'notify::screensaver-active', self._screensaver_state_changed)
ConnectionHandlers.__init__(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment