diff options
author | Richard Hughes <richard@hughsie.com> | 2007-07-13 15:10:02 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2007-07-13 15:10:02 +0100 |
commit | 1c7f169871670783c19cae40379f15d3c06f15f4 (patch) | |
tree | 86c45a0d1f29858bd4554dfa9dd434a31f0cc07b /plugins/glue | |
parent | b63b4b9938966e95caea230cad55653de737996d (diff) |
require xorg if using the display
Diffstat (limited to 'plugins/glue')
-rw-r--r-- | plugins/glue/idle/ohm-plugin-idle.c | 1 | ||||
-rw-r--r-- | plugins/glue/xrandr/ohm-plugin-xrandr.c | 1 |
2 files changed, 2 insertions, 0 deletions
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; } |