gnome-shell/gnome-shell-fix-cursor-on-hide-preedit.patch
Dominique Leuenberger e5e7c4b3a2 - Update to version 47.2:
+ Fix graphical artifacts in partially-rounded buttons
  + Fix caret tracking in magnifier
  + Improve accessibility of keyboard backlight quick settings
    toggle
  + Fix resetting non-caps shift key in on-screen keyboard
  + Misc. bug fixes and cleanups
  + Updated translations.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=596
2024-11-26 13:02:35 +00:00

28 lines
1010 B
Diff

From c17f3aa64a264a5fec7d3c5f8d1e9415b60a55b4 Mon Sep 17 00:00:00 2001
From: Alynx Zhou <alynx.zhou@gmail.com>
Date: Wed, 15 May 2024 10:09:09 +0800
Subject: [PATCH] inputMethod: Reset preedit cursor when preedit text is
cleared
The preedit cursor position should be 0 when there is no preedit text,
currently it will pass 1, which is the wrong previous value.
---
js/misc/inputMethod.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Index: gnome-shell-47.beta/js/misc/inputMethod.js
===================================================================
--- gnome-shell-47.beta.orig/js/misc/inputMethod.js
+++ gnome-shell-47.beta/js/misc/inputMethod.js
@@ -161,9 +161,7 @@ export const InputMethod = GObject.regis
}
_onHidePreeditText() {
- this.set_preedit_text(
- null, this._preeditPos, this._preeditAnchor,
- this._preeditCommitMode);
+ this.set_preedit_text(null, 0, 0, this._preeditCommitMode);
this._preeditVisible = false;
}