Commit e3c94822 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak Committed by Guido Gunther
Browse files

shell: Hide the keyboard when unfolding the home screen

parent 3573fb65
Pipeline #31667 passed with stages
in 8 minutes
......@@ -257,6 +257,23 @@ phosh_shell_set_locked (PhoshShell *self, gboolean state)
}
static void
on_home_state_changed (PhoshShell *self, GParamSpec *pspec, PhoshHome *home)
{
PhoshShellPrivate *priv;
PhoshHomeState state;
g_return_if_fail (PHOSH_IS_SHELL (self));
g_return_if_fail (PHOSH_IS_HOME (home));
priv = phosh_shell_get_instance_private (self);
g_object_get (priv->home, "state", &state, NULL);
if (state == PHOSH_HOME_STATE_UNFOLDED)
phosh_osk_manager_set_visible (priv->osk_manager, FALSE);
}
static void
panels_create (PhoshShell *self)
{
......@@ -280,6 +297,12 @@ panels_create (PhoshShell *self)
"settings-activated",
G_CALLBACK(settings_activated_cb),
self);
g_signal_connect_swapped (
priv->home,
"notify::state",
G_CALLBACK(on_home_state_changed),
self);
}
......
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