diff options
author | tlatorre <tlatorre@uchicago.edu> | 2022-11-12 16:54:15 -0800 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2022-11-12 16:54:15 -0800 |
commit | 23ef9f2c2213d45b121eee9bd4fd1e71b171118d (patch) | |
tree | a31c990950110f1bc07e9d6024e30e457f32013d | |
parent | 389ed1929cd0de17e533b98b0d3b51c8535110e9 (diff) | |
download | moji-master.tar.gz moji-master.tar.bz2 moji-master.zip |
-rw-r--r-- | moji.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -241,9 +241,10 @@ gboolean timer(gpointer data) * the screen. */ current_position = 0; current_letter = 0; + write_buf(); processed = TRUE; aeGetTime(&pressed_time_sec,&pressed_time_msec); - } else if (diff > CLICK_TIME) { + } else if ((processed == FALSE) && (diff > CLICK_TIME)) { /* If the mouse button has been clicked for more than CLICK_TIME * milliseconds, add the current character to the buffer. */ current_char = current_chars->characters[current_letter % current_chars->len]; |