Commit e3c0a1ba authored by Guido Gunther's avatar Guido Gunther
Browse files

Use correct 'shown' value when showing up on DBus

parent 109e6089
......@@ -1421,8 +1421,12 @@ bus_name_acquired(GDBusConnection *connection,
// but let's follow minminbus for now and register objects here
dbus_interface = sm_puri_osk0_skeleton_new();
struct virtual_keyboard *virtual_keyboard = user_data;
gboolean shown;
sm_puri_osk0_set_visible(dbus_interface, false); // TODO: use actual value
shown = virtual_keyboard->layer_surface ? TRUE : FALSE;
g_debug("Acquired bus name, keyboad %sshown", shown ? "" : "not ");
sm_puri_osk0_set_visible(dbus_interface, shown);
g_signal_connect(dbus_interface, "handle-get-visible",
G_CALLBACK(handle_get_visible), user_data);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment