dbus: Reset hints if text input missing

This commit is contained in:
Dorota Czaplejewicz
2020-12-15 13:20:34 +00:00
parent b72c6b53e4
commit 4890c86b4e
5 changed files with 29 additions and 3 deletions

View File

@ -255,7 +255,7 @@ on_hide (ServerContextService *self)
return G_SOURCE_REMOVE;
}
void
static void
server_context_service_show_keyboard (ServerContextService *self)
{
g_return_if_fail (SERVER_IS_CONTEXT_SERVICE(self));
@ -270,6 +270,19 @@ server_context_service_show_keyboard (ServerContextService *self)
}
}
void
server_context_service_force_show_keyboard (ServerContextService *self)
{
if (!submission_hint_available(self->submission)) {
eekboard_context_service_set_hint_purpose(
self->state,
ZWP_TEXT_INPUT_V3_CONTENT_HINT_NONE,
ZWP_TEXT_INPUT_V3_CONTENT_PURPOSE_NORMAL
);
}
server_context_service_show_keyboard(self);
}
void
server_context_service_hide_keyboard (ServerContextService *self)
{