Bug 2267618

Summary: "ibus restart" repeats sending Enter key event at konsole
Product: [Fedora] Fedora Reporter: Akira TAGOH <tagoh>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: i18n-bugs, shawn.p.huang, tfujiwar
Target Milestone: ---Keywords: i18n, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ibus-1.5.32~rc1-4.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-19 00:16:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Akira TAGOH 2024-03-04 07:57:07 UTC
Summary says it all. there are nothing more than that. I really have no idea what exactly happened. maybe good to try. it is easy to reproduce.

I installed Fedora-KDE-Live-x86_64-40-20240303.n.1.iso and enable IBus from Virtual Keyboard settings.

Reproducible: Always

Steps to Reproduce:
1.Open konsole
2.ibus restart
3.
Actual Results:  
Apparently someone is sending Enter keys at konsole repeatedly and scrolling a lot.

Expected Results:  
"ibus restart" command should be done without any extra scrolling.

Comment 1 fujiwara 2024-03-05 12:20:04 UTC
It's a known issue that IBus can work with the activated input context in Wayland and the Enter key was handled out of IBus. Maybe this is relative with the XIM support in Wayland.
Closing this as duplicated at the moment until I get the better fix.

The workaround is to switch the input focus on another application and switch back the input focus on the terminal again.

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

Comment 2 fujiwara 2025-02-28 04:24:32 UTC
The parent bug is fixed and this issue is reopen.

The syslog shows:

 2 27 14:51:26 host kwin_wayland_wrapper[10312]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
 2 27 14:51:27 host kwin_wayland_wrapper[10312]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!

and the issue cannot be fix in ibus side 100% as I tried to handle the key release event.

Now I add to wait for 1 sec in ibus command to send the release event for the workaround and it can avoid the key repeating but freezing key is not fixed.
I.e. the workaround fixes `ibus restart` but leaves an issue in `ibus exit` which should be reported to kwin_wayland.

Comment 3 Fedora Update System 2025-02-28 04:26:59 UTC
FEDORA-2025-d504af69df (ibus-1.5.32~rc1-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d504af69df

Comment 4 Fedora Update System 2025-03-01 01:54:11 UTC
FEDORA-2025-d504af69df has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d504af69df`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d504af69df

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-03-07 08:34:39 UTC
FEDORA-2025-d504af69df has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d504af69df`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d504af69df

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-03-10 01:56:13 UTC
FEDORA-2025-d504af69df has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d504af69df`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d504af69df

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-03-15 03:34:10 UTC
FEDORA-2025-d504af69df has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-d504af69df`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-d504af69df

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-03-19 00:16:19 UTC
FEDORA-2025-d504af69df (ibus-1.5.32~rc1-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.