gnucash maint: [register] Delay post-ime reset of the selection.
John Ralls
jralls at code.gnucash.org
Sat Dec 17 13:45:57 EST 2022
Updated via https://github.com/Gnucash/gnucash/commit/65d3546f (commit)
from https://github.com/Gnucash/gnucash/commit/16dca1ad (commit)
commit 65d3546f109b4213bd01146570d2c398b65aafba
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Dec 17 10:41:34 2022 -0800
[register] Delay post-ime reset of the selection.
Works around bug 798587.
diff --git a/gnucash/register/register-gnome/gnucash-sheet.c b/gnucash/register/register-gnome/gnucash-sheet.c
index 4b009dc27..374cd4fc0 100644
--- a/gnucash/register/register-gnome/gnucash-sheet.c
+++ b/gnucash/register/register-gnome/gnucash-sheet.c
@@ -1833,6 +1833,11 @@ gnucash_sheet_key_press_event_internal (GtkWidget *widget, GdkEventKey *event)
/* Followed by the input method */
if (gtk_entry_im_context_filter_keypress (GTK_ENTRY(sheet->entry), event))
{
+ /* There's sometimes a timing issue when running under KDE
+ * Plasma where this call removes the selection. This 1ms
+ * sleep prevents it.
+ */
+ usleep(1000);
/* Restore the saved cursor position in case GtkEntry's IMContext
* handlers messed with it after we set it in our insert_cb.
*/
Summary of changes:
gnucash/register/register-gnome/gnucash-sheet.c | 5 +++++
1 file changed, 5 insertions(+)
More information about the gnucash-changes
mailing list