[gnome-settings-daemon] power: Check for XTEST support on start
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Check for XTEST support on start
- Date: Mon, 21 Jan 2013 17:02:33 +0000 (UTC)
commit 652d54ab3f686573def8f0a540f67fbf79f6ae02
Author: Bastien Nocera <hadess hadess net>
Date: Sat Jan 19 01:47:16 2013 +0100
power: Check for XTEST support on start
plugins/power/gsd-power-manager.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index e867192..e8f3fd1 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -36,6 +36,8 @@
#include <libgnome-desktop/gnome-rr.h>
#include <libgnome-desktop/gnome-idle-monitor.h>
+#include <gsd-input-helper.h>
+
#include "gsd-power-constants.h"
#include "gsm-inhibitor-flag.h"
#include "gsm-presence-flag.h"
@@ -3329,6 +3331,13 @@ gsd_power_manager_start (GsdPowerManager *manager,
if (manager->priv->rr_screen == NULL) {
g_debug ("Couldn't detect any screens, disabling plugin");
return FALSE;
+ }
+
+ /* Check for XTEST support */
+ if (supports_xtest () == FALSE) {
+ g_debug ("XTEST extension required, disabling plugin");
+ return FALSE;
+ }
/* Set up the logind proxy */
manager->priv->logind_proxy =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]