summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/cursor/gsd-cursor-manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/cursor/gsd-cursor-manager.c b/plugins/cursor/gsd-cursor-manager.c
index 99d17199..202ce6c7 100644
--- a/plugins/cursor/gsd-cursor-manager.c
+++ b/plugins/cursor/gsd-cursor-manager.c
@@ -155,6 +155,9 @@ set_osk_enabled (GsdCursorManager *manager,
g_debug ("Switching the OSK to %s", enabled ? "enabled" : "disabled");
manager->priv->show_osk = enabled;
+ if (manager->priv->dbus_connection == NULL)
+ return;
+
builder = g_variant_builder_new (G_VARIANT_TYPE_ARRAY);
g_variant_builder_add (builder,
"{sv}",