FS#39898 - [inkscape, ibus] Input candidates dialogue keeps appearing outside the screen

Attached to Project: Arch Linux
Opened by Tyler Foo (ghfujianbin) - Wednesday, 16 April 2014, 11:52 GMT
Last edited by Gaetan Bisson (vesath) - Tuesday, 22 April 2014, 02:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When inputting Chinese in Inkscape, the the candidates dialog keeps appearing outside the screen, so when the window is maximized, I cannot see any candidates. I first noticed this issue using ibus, but I also tried fcitx, the issue remains.

Additional info:
inkscape 0.48.4-13
Gnome Shell 3.12.0-1

Steps to reproduce:
Try to input some Chinese using the Text tool. First type and select some characters (it usually works at the beginning), when they are inputted, continue typing, but this time you won't see the candidates dialog.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Tuesday, 22 April 2014, 02:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  inkscape-0.48.4-14 in [extra]
Comment by Tyler Foo (ghfujianbin) - Wednesday, 16 April 2014, 12:04 GMT
Just tried a little bit more with fcitx. Found out that the reason why it's also affected is because I'm using the kimpanel extension, which stimulates the same input candidates dialog as the one that comes with ibus.
Comment by Gaetan Bisson (vesath) - Wednesday, 16 April 2014, 16:16 GMT
So it's an ibus issue, then, isn't it?
Comment by Tyler Foo (ghfujianbin) - Wednesday, 16 April 2014, 23:23 GMT
It probably is. But I don't have this problem when inputting in other applications, at least not like this.
Comment by Gaetan Bisson (vesath) - Thursday, 17 April 2014, 00:58 GMT
Well, I don't know, from ibus' perspective, inscape should be nothing but another GTK application...
Comment by Gaetan Bisson (vesath) - Thursday, 17 April 2014, 00:59 GMT
Felix, any idea?
Comment by Felix Yan (felixonmars) - Thursday, 17 April 2014, 01:29 GMT
I see two problems out of the description:

1. Candidate always appears out of application window? (if I understand correctly)

This may be caused by the application using xim instead of gtk immodule. Please confirm if the problem doesn't appear for standard dialogs like Open/Save As dialogs. (I'll check this later if you didn't)

If that is the case, try to use "over the spot" as xim style instead of "on the spot", since a fairly amount of applications misbehave with the default value, it wouldn't be a surprise if inkscape on the list too.

2. Candidate window appears out of screen. Since you mentioned kimpanel, this is most likely a bug for kimpanel. Since we don't provide gnome's kimpanel extension in repos, I'd suggest to report it upstream.
Comment by Tyler Foo (ghfujianbin) - Thursday, 17 April 2014, 01:40 GMT
1. Yes, it always. Open/Save dialogs are fine. How can I change from "on the spot" to "over the spot"?
2. The reason why I'm using kimpanel is that I switched from ibus to fcitx, cuz I first caught this bug using ibus, so I wanted to check if fcitx has the same issue.

So in conclusion, the default ibus IM that comes with Gnome always has this issue, but fcitx only has this issue if I'm using kimpanel, which which stimulates the same input candidates dialog as ibus one.
Comment by Felix Yan (felixonmars) - Thursday, 17 April 2014, 02:28 GMT
Okay, then it's confirmed.

1. I'm not quite sure about ibus, but if you were able to test with fcitx, try:

Fcitx configuration -> Addon Config -> Check "Show Advance option" -> Click the configure button for "Fcitx XIM Frontend" -> Uncheck "Use On The Spot ...".

2. So both the gnome kimpanel extension and gnome + ibus has bug in the interface. Try to open an issue and discuss upstream at:

gnome kimpanel extension: https://github.com/wengxt/kimpanel-for-gnome-shell
ibus / gnome-shell: https://wiki.gnome.org/Projects/GnomeShell (The candidate popup is in gnome-shell's code base)
Comment by Tyler Foo (ghfujianbin) - Thursday, 17 April 2014, 02:44 GMT
The "Use On the Spot" option is already unchecked. So it has nothing to do with that. I will report to upstream.
Comment by Felix Yan (felixonmars) - Thursday, 17 April 2014, 03:04 GMT
So it's a bug in inkscape, which didn't report cursor location correctly.
Comment by Gaetan Bisson (vesath) - Thursday, 17 April 2014, 03:59 GMT
Thanks a lot for diagnosing this. Tyler, could you report it upstream? Cheers.
Comment by Tyler Foo (ghfujianbin) - Thursday, 17 April 2014, 04:01 GMT
Will do. Thanks for your guys' help.
Comment by Felix Yan (felixonmars) - Thursday, 17 April 2014, 04:04 GMT
For the kimpanel for gnome bug, I've contacted the author, and a fix has been committed [1].

Please try the git master version, thanks!

[1] https://github.com/wengxt/kimpanel-for-gnome-shell/commits/master
Comment by Felix Yan (felixonmars) - Thursday, 17 April 2014, 04:13 GMT
Found the inkscape bug reports (with help of Fcitx developers):

https://bugs.launchpad.net/inkscape/+bug/166632
https://bugs.launchpad.net/inkscape/+bug/1002340

It's a 8 year old bug of inkscape and fixed 2 years ago, but no release were made with the fix. Perhaps you can try the latest bzr checkout (aur/inkscape-bzr).
Comment by Tyler Foo (ghfujianbin) - Thursday, 17 April 2014, 04:16 GMT
Wow, that is quick. I'll definitely try that when I have time. Thanks a ton!
Comment by Gaetan Bisson (vesath) - Thursday, 17 April 2014, 04:24 GMT
Inkscape's pkgrel is currently 13 and requires three patches to build. I'm not too keen to increment these two numbers, so if this issue bothers you enough that we should fix it in the repos, I'll consider switching to a bzr snapshot...
Comment by Tyler Foo (ghfujianbin) - Thursday, 17 April 2014, 04:31 GMT
Yes pls do. I use inkscape quite often. It's one of the best apps I've found in the open source community.
Comment by Gaetan Bisson (vesath) - Tuesday, 22 April 2014, 00:33 GMT
According to http://inkscape.org/en/develop/next-release/ we're not too far away from inkscape-0.91-pre0; given the amount of changes that has been going on since 0.48 I feel uncomfortable packaging a new inkscape before then. I'll add the patch to this issue for the time being.

Loading...