Bug 1173810

Summary: Character select window does not follow cursor in firefox. It shows at bottom left corner.
Product: [Fedora] Fedora Reporter: andy <andy_chung>
Component: ibus-cangjieAssignee: Mathieu Bridon <bochecha>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 21CC: bochecha
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://plus.google.com/u/0/106073399143885030624/posts/LjSqVMZiLaP?pid=6092213021445991778&oid=106073399143885030624
Whiteboard:
Fixed In Version: ibus-cangjie-2.4-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-09 09:10:42 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:

Description andy 2014-12-13 06:48:18 UTC
Description of problem:
Character select window does not follow cursor in firefox.  It shows at bottom left corner.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Start firefox
2. Change to Cangjie
3. Type chinese

Actual results:
The select character window shows at bottom left thus not all characters are displayed

Expected results:
The character select window should follow cursor.

Additional info:
Does not happen in F20 gnome. I just upgraded to F21 gnome and hit the problem

Comment 1 Mathieu Bridon 2014-12-13 12:20:36 UTC
Thanks for the bug report.

I've known it for a while now, but it's always good to have it written down somewhere. :)

> Does not happen in F20 gnome.

Well, yes, it does, I reproduce it there all the time.

-----

A bit more context on this issue.

As far as I can tell, the issue is not in IBus Cangjie. I **think** it is either in Firefox, or maybe even in Gtk2.

IBus Cangjie does NOT use preedit text, which is what is triggering this issue.

I once locally patched my IBus Cangjie to added a dummy preedit text, and the issue wouldn't happen any more.

So it seems to me that Firefox (or is it Gtk2?) does not properly position the candidates popup when an input method engine does not use preedit.

Most engines do use preedit though, which makes IBus Cangjie stand out here. :(

Comment 2 Mathieu Bridon 2015-03-29 18:48:01 UTC
We found a workaround (thanks to Frédéric Péters for the idea) upstream, and I just made a new 2.4 release including it.

It isn't the fix for the issue: the issue still lies in the applications/toolkits which get confused when an engine doesn't use preedit.

But with the workaround, at least you will get the candidate popup at the right location, and we can drop the workaround when the real issue is fixed properly.

Updates are coming to Fedora shortly.

Comment 3 Fedora Update System 2015-03-29 18:49:48 UTC
ibus-cangjie-2.4-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/ibus-cangjie-2.4-1.fc22

Comment 4 Fedora Update System 2015-03-29 18:55:49 UTC
ibus-cangjie-2.4-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ibus-cangjie-2.4-1.fc21

Comment 5 Fedora Update System 2015-03-31 21:49:39 UTC
Package ibus-cangjie-2.4-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-cangjie-2.4-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-5134/ibus-cangjie-2.4-1.fc21
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-04-09 09:10:42 UTC
ibus-cangjie-2.4-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-04-21 18:52:38 UTC
ibus-cangjie-2.4-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 andy 2015-09-03 07:50:18 UTC
very nice.