ui: Cancel hiding delay when activity requested again

This commit is contained in:
Dorota Czaplejewicz
2020-11-14 06:09:37 +00:00
parent 91acfa0138
commit 12c9ca1e02

View File

@ -233,11 +233,6 @@ server_context_service_real_show_keyboard (ServerContextService *self)
return;
}
if (self->hiding) {
g_source_remove (self->hiding);
self->hiding = 0;
}
if (!self->window) {
make_window (self);
}
@ -269,6 +264,11 @@ server_context_service_show_keyboard (ServerContextService *self)
{
g_return_if_fail (SERVER_IS_CONTEXT_SERVICE(self));
if (self->hiding) {
g_source_remove (self->hiding);
self->hiding = 0;
}
if (!self->visible) {
server_context_service_real_show_keyboard (self);
}