From 1c7f169871670783c19cae40379f15d3c06f15f4 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 13 Jul 2007 15:10:02 +0100 Subject: require xorg if using the display --- plugins/glue/idle/ohm-plugin-idle.c | 1 + plugins/glue/xrandr/ohm-plugin-xrandr.c | 1 + 2 files changed, 2 insertions(+) (limited to 'plugins/glue') diff --git a/plugins/glue/idle/ohm-plugin-idle.c b/plugins/glue/idle/ohm-plugin-idle.c index c9e6c00..33d08c7 100644 --- a/plugins/glue/idle/ohm-plugin-idle.c +++ b/plugins/glue/idle/ohm-plugin-idle.c @@ -44,6 +44,7 @@ static gboolean plugin_preload (OhmPlugin *plugin) { /* tell ohmd what keys we are going to provide */ + ohm_plugin_require (plugin, "xorg"); ohm_plugin_conf_provide (plugin, "idle.momentary"); ohm_plugin_conf_provide (plugin, "idle.powersave"); ohm_plugin_conf_provide (plugin, "idle.powerdown"); diff --git a/plugins/glue/xrandr/ohm-plugin-xrandr.c b/plugins/glue/xrandr/ohm-plugin-xrandr.c index decc957..eb86a77 100644 --- a/plugins/glue/xrandr/ohm-plugin-xrandr.c +++ b/plugins/glue/xrandr/ohm-plugin-xrandr.c @@ -39,6 +39,7 @@ enum { static gboolean plugin_preload (OhmPlugin *plugin) { + ohm_plugin_require (plugin, "xorg"); ohm_plugin_conf_provide (plugin, "xrandr.position"); return TRUE; } -- cgit v1.2.3