Verified Commit 9d4c947b authored by André's avatar André
Browse files

Ignore Xss idle monitor on wayland

Wayland doesn't provide XScreenSaver Extension.
parent 1609d931
Pipeline #6818 passed with stages
in 4 minutes and 7 seconds
......@@ -28,6 +28,8 @@
from gi.repository import GLib
from gi.repository import GObject
from gajim.common import app
from gajim.common.const import Display
from gajim.common.const import IdleState
log = logging.getLogger('gajim.c.idle')
......@@ -317,6 +319,9 @@ def _get_idle_monitor():
except GLib.Error as error:'Idle time via D-Bus (GNOME) not available: %s', error)
if app.is_display(Display.WAYLAND):
return XssIdleMonitor()
except OSError as error:
Supports Markdown
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