summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmatekbd/matekbd-keyboard-drawing.c b/libmatekbd/matekbd-keyboard-drawing.c
index f284428..ddd12b4 100644
--- a/libmatekbd/matekbd-keyboard-drawing.c
+++ b/libmatekbd/matekbd-keyboard-drawing.c
@@ -1584,6 +1584,8 @@ unpress_keys (MatekbdKeyboardDrawing * drawing)
{
gint i;
+ drawing->timeout = 0;
+
if (!drawing->xkb)
return FALSE;
@@ -1610,7 +1612,7 @@ focus_event (GtkWidget * widget,
if (event->in && drawing->timeout > 0) {
g_source_remove (drawing->timeout);
drawing->timeout = 0;
- } else
+ } else if (drawing->timeout == 0)
drawing->timeout =
g_timeout_add (120, (GSourceFunc) unpress_keys,
drawing);