summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2007-09-13 12:03:53 +0100
committerRob Taylor <rob.taylor@codethink.co.uk>2007-09-13 12:16:53 +0100
commitdcd3cd3922cff75d4d1314529be560e8d3171d15 (patch)
tree07fd6a40200101369d7c069ad28eced529ef5c7d
parent7569bf2c692216927ff3690a3fc24a58d33206cb (diff)
xorg plugin: first call of plugin_poll_startup handled incorrectly
In plugin_initialize, the return value of the first call to plugin_poll_startup is handled incorrectly - as plugin_poll_startup is a GSourceFunc, it returns FALSE when it's successful..
-rw-r--r--plugins/glue/xorg/ohm-plugin-xorg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/glue/xorg/ohm-plugin-xorg.c b/plugins/glue/xorg/ohm-plugin-xorg.c
index f91c8af..28b3f1a 100644
--- a/plugins/glue/xorg/ohm-plugin-xorg.c
+++ b/plugins/glue/xorg/ohm-plugin-xorg.c
@@ -82,7 +82,7 @@ plugin_initialize (OhmPlugin *plugin)
/* naive try... we might be running under X */
ret = plugin_poll_startup (plugin);
- if (ret == FALSE) {
+ if (ret == TRUE) {
/* we failed to connect to X - maybe X is not alive yet? */
g_debug ("Could not connect to X, polling until we can");
g_timeout_add (2000, plugin_poll_startup, plugin);