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



commit 8a32717498a4d906d1675bb34550b4c9ba610a5a
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 2d027c2f..5a357242 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2626,12 +2626,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 0158a466..07af9cbf 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]