[gnome-settings-daemon/wip/hadess/old-xlibs-removal: 30/35] power: Remove runtime XTest check, not used anymore



commit e5888698b74f19d1ef82356283b8f96362ee0f5a
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 25 13:24:24 2018 +0200

    power: Remove runtime XTest check, not used anymore
    
    We use D-Bus to reset the idletime now.

 plugins/power/gsd-power-manager.c | 6 ------
 plugins/power/meson.build         | 1 -
 2 files changed, 7 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 118e9b87..994f4d9c 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2630,12 +2630,6 @@ gsd_power_manager_start (GsdPowerManager *manager,
                 return FALSE;
         }
 
-        /* Check for XTEST support */
-        if (supports_xtest () == FALSE) {
-                g_debug ("XTEST extension required, disabling plugin");
-                return FALSE;
-        }
-
         /* coldplug the list of screens */
         gnome_rr_screen_new_async (gdk_screen_get_default (),
                                    on_rr_screen_acquired, manager);
diff --git a/plugins/power/meson.build b/plugins/power/meson.build
index ea07ae9a..7d111099 100644
--- a/plugins/power/meson.build
+++ b/plugins/power/meson.build
@@ -14,7 +14,6 @@ deps = plugins_deps + [
   m_dep,
   upower_glib_dep,
   x11_dep,
-  xtst_dep,
   dependency('xext')
 ]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]