Commit 8606b9bd authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Carlos Garnacho

power: Make X screensaver watchdog X11 specific

There's no way X11 clients will be able to mess with screensaver state
on wayland, so this is useless there.
parent 50eccb08
......@@ -2479,7 +2479,8 @@ on_rr_screen_acquired (GObject *object,
/* ensure the default dpms timeouts are cleared */
backlight_enable (manager);
manager->xscreensaver_watchdog_timer_id = gsd_power_enable_screensaver_watchdog ();
if (!gnome_settings_is_wayland ())
manager->xscreensaver_watchdog_timer_id = gsd_power_enable_screensaver_watchdog ();
/* don't blank inside a VM */
manager->is_virtual_machine = gsd_power_is_hardware_a_vm ();
......
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