Bug 1942970

Summary: Once enable emoji mode in gedit it got enabled by default in other applications as well
Product: [Fedora] Fedora Reporter: Priyam Gupta <prigupta>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: i18n-bugs, mfabian, petersen, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: ibus-1.5.25-5.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-04 01:46:34 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
Screencast
none
Another video showing the problem none

Description Priyam Gupta 2021-03-25 12:17:06 UTC
Created attachment 1766295 [details]
Screencast

Description of problem:

If I enable emoji on gedit and switch to other application (for e.g. terminal, browser or even if your screen got locked it is enabled by default ), the emoji mode is active in other applications as well, till I cancel it on gedit(or the app from where I initially activated it).


How reproducible:


Steps to Reproduce:
1.Open gedit.
2.Press ctrl+shift+e for activating emoji mode.
3.Switch to another application like terminal,firefox etc
4.Now try to type in the switched application.


Actual results:
It got enabled by default in other applications as well

Expected results:
 It should not enable by default in other applications

Additional info:
 Attaching screen recording for the same.

Comment 1 Jens Petersen 2021-04-12 09:35:30 UTC
Is this with ibus or not?

Comment 2 fujiwara 2021-04-15 11:36:09 UTC
Hmm..., I see your request.
But there is another use case.

IBus engines cannot recognize applications but input focuses.
IBus emoji extension accepts to change the IMEs and Super-space switcher dialog changes input focuses and do not disable emoji typing with focus changes by default.

Comment 3 Mike FABIAN 2021-10-05 07:05:36 UTC
Created attachment 1829253 [details]
Another video showing the problem

I also think this is very bad.

ibus should commit or discard this on focus change (I would prefer commit) but not move this emoji preedit to a different window.

What is especially bad is that it is sometimes β€œmoved invisibly”:

In the video one can see that I type

Control+. smile space

into geedit and then see β€œeπŸ˜ƒβ€.

Then I click into Libreoffice and the β€œeπŸ˜ƒβ€ is moved into LibreOffice.

Then I click into gedit and the β€œeπŸ˜ƒβ€ is moved back into gedit.

I click into LibreOffice again and the β€œeπŸ˜ƒβ€ is moved into LibreOffice.

Now I click into gedit again and it looks like the β€œeπŸ˜ƒβ€ has disappeared.

Now I type a β€œb” and surprisingly see β€œesmileb”, i.e. the β€œeπŸ˜ƒβ€ preedit was still there, it was just invisible and adding a β€œb” to this preedit made it visible again.

Comment 4 fujiwara 2021-10-29 04:53:27 UTC
Thank you all for the comments.
I'm convinced with the several issues and implemented a little complicated logic to handle focus-out/in events with Ctrl-period, space, and Emojier category window in Wayland desktops.
Let's see if we find other issues or regression ones.

Comment 5 Fedora Update System 2021-10-29 05:49:53 UTC
FEDORA-2021-f5f819f8d0 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f5f819f8d0

Comment 6 Fedora Update System 2021-10-29 21:17:22 UTC
FEDORA-2021-f5f819f8d0 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-f5f819f8d0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-f5f819f8d0

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

Comment 7 Fedora Update System 2021-11-04 01:46:34 UTC
FEDORA-2021-f5f819f8d0 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.