Accepting request 1174714 from home:AZhou:branches:GNOME:Factory

- Add gnome-shell-fix-cursor-on-hide-preedit.patch: Correctly reset
  preedit cursor location when hide preedit text to prevent
  potential problems (glgo#GNOME/gnome-shell!3318).

OBS-URL: https://build.opensuse.org/request/show/1174714
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=575
This commit is contained in:
Dominique Leuenberger 2024-05-17 06:14:02 +00:00 committed by Git OBS Bridge
parent 9a827e3940
commit 0cd8a7d2bc
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,30 @@
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(-)
diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js
index d8c3e62f0..2642aca9e 100644
--- a/js/misc/inputMethod.js
+++ b/js/misc/inputMethod.js
@@ -163,9 +163,7 @@ export const InputMethod = GObject.registerClass({
}
_onHidePreeditText() {
- this.set_preedit_text(
- null, this._preeditPos, this._preeditAnchor,
- this._preeditCommitMode);
+ this.set_preedit_text(null, 0, 0, this._preeditCommitMode);
this._preeditVisible = false;
}
--
2.45.0

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri May 17 03:33:41 UTC 2024 - Alynx Zhou <alynx.zhou@suse.com>
- Add gnome-shell-fix-cursor-on-hide-preedit.patch: Correctly reset
preedit cursor location when hide preedit text to prevent
potential problems (glgo#GNOME/gnome-shell!3318).
-------------------------------------------------------------------
Thu May 2 08:03:42 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -41,6 +41,8 @@ Patch1: gnome-shell-private-connection.patch
Patch7: gnome-shell-executable-path-not-absolute.patch
# PATCH-FIX-UPSTREAM gnome-shell-exit-crash-workaround.patch bsc#1190878 glgo#GNOME/gnome-shell#4344 qkzhu@suse.com -- Workaround logout crashing
Patch8: gnome-shell-exit-crash-workaround.patch
# PATCH-FIX-UPSTREAM gnome-shell-fix-cursor-on-hide-preedit.patch glgo#GNOME/gnome-shell!3318 alynx.zhou@suse.com -- Correctly reset cursor when hide preedit
Patch9: gnome-shell-fix-cursor-on-hide-preedit.patch
## NOTE: Keep SLE-only patches at bottom (starting on 1000).
# PATCH-FEATURE-SLE gnome-shell-gdm-login-applet.patch fate#314545 dliang@suse.com -- Add an applet on login UI to display suse icon, product name, hostname.
@ -187,6 +189,7 @@ This package contains an optional extensions app for managing GNOME Shell extens
%patch -P 1 -p1
%patch -P 7 -p1
%patch -P 8 -p1
%patch -P 9 -p1
%if 0%{?sle_version}
%patch -P 1001 -p1