diff options
author | monsta <[email protected]> | 2016-03-04 12:12:29 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-03-04 12:12:29 +0300 |
commit | c5a3a29da67cc8ef884d3bac956603818f8c4e17 (patch) | |
tree | aaad8dced916095a1150ae053d33bc33472417b2 | |
parent | 226317d63b5bcf19e7ee888ef957379e10231c66 (diff) | |
download | libmatekbd-c5a3a29da67cc8ef884d3bac956603818f8c4e17.tar.bz2 libmatekbd-c5a3a29da67cc8ef884d3bac956603818f8c4e17.tar.xz |
properly reset timeout source id to 0
from
https://git.gnome.org/browse/libgnomekbd/commit/?id=51abfc03dd1f0f1904455b703106abe19a062eec
-rw-r--r-- | libmatekbd/matekbd-keyboard-drawing.c | 4 |
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); |