Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1938251

Summary: RFE: ibus_update_preedit_text_with_mode() is not implemented in Gnome Wayland (works fine in Gnome Xorg)
Product: [Fedora] Fedora Reporter: Mike FABIAN <mfabian>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: i18n-bugs, mfabian, shawn.p.huang, tfujiwar
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-25 02:45:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Video showing the problem when using ibus-typing-booster in Gnome Wayland
none
Video showing the problem when using “Vietnamese (telex (m17n))” in Gnome Wayland none

Description Mike FABIAN 2021-03-12 15:26:09 UTC
I installed Fedora-Workstation-Live-x86_64-34-20210308.n.0.iso into qemu.

Add the ibus-typing-booster input method in the Gnome control center and
also add the “Vietnamese (telex (m17n))” input method from ibus-m17n.

Both input methods use 

   update_preedit_text_with_mode(..., .., ..., IBus.PreeditFocusMode.COMMIT)

and this problem can be reproduced with either of them.

Open a gedit and a gnome-terminal.

Select ibus-typing-booster in the Gnome panel and type “test”.
The word “test” is underlined, indicating that it is in preedit and not yet committed to gedit.

Now click on gnome-terminal to change the focus to gnome-terminal.

The string “test” vanishes from gedit. It should *not* vanish, it should
be committed i.e. the underline under “test” should vanish and the string
“test” should be in gedit.

Same problem with the Vietnamese (telex (m17n)) input method.

Select it in the Gnome panel.

Type “a” into gedit.  The “a” is underlined because it is in preedit.
Click on gnome-terminal to change the focus to gnome-terminal.
The “a” vanishes. Here as well the “a” should be commited to gedit, i.e.
the underline should disappear and the “a” should remain in gedit.

Comment 1 Mike FABIAN 2021-03-12 15:29:51 UTC
Created attachment 1763034 [details]
Video showing the problem when using ibus-typing-booster in Gnome Wayland

Comment 2 Mike FABIAN 2021-03-12 15:32:25 UTC
Created attachment 1763035 [details]
Video showing the problem when using “Vietnamese (telex (m17n))” in Gnome Wayland

Comment 3 Mike FABIAN 2021-03-12 15:32:49 UTC
This works fine in Gnome Xorg.

Comment 4 fujiwara 2021-03-25 02:45:51 UTC

*** This bug has been marked as a duplicate of bug 1942294 ***

Comment 5 fujiwara 2021-03-31 04:41:46 UTC
Sorry, this is not a regression but a known issue.
ibus_update_preedit_text_with_mode() has not been implemented in GNOME Wayland yet.
pwu has the patch of the API and I have another patch over his one.

https://pwu.fedorapeople.org/wayland/preedit_with_mode_v6/

https://copr.fedorainfracloud.org/coprs/pwu/wayland/packages/