Commit c0b6ea51 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

enabled: Don't force the keyboard to show when enable is switched

This is a bit of a hack: the enable semantics are not finalized yet:

Librem5/squeekboard#238

This prevents the keyboard from appearing over the lock screen at least:

Librem5/squeekboard!397 (comment 123987)
parent 0ed1dd92
......@@ -404,13 +404,8 @@ void
server_context_service_set_enabled (ServerContextService *self, gboolean enabled)
{
g_return_if_fail (SERVER_IS_CONTEXT_SERVICE (self));
if (enabled == self->enabled)
return;
self->enabled = enabled;
if (self->enabled)
server_context_service_show_keyboard (self);
else
if (!self->enabled) {
server_context_service_hide_keyboard (self);
}
}
Supports Markdown
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