After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339367 - Incorrect spotlocation
Incorrect spotlocation
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Input Methods
2.8.x
Other All
: Normal minor
: ---
Assigned To: Hidetoshi Tajima
gtk-bugs
: 150052 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-04-22 01:04 UTC by aoyama
Modified: 2008-09-28 03:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch for modules/input/gtkimcontextxim.c (391 bytes, patch)
2007-12-03 11:11 UTC, Takao Fujiwara
committed Details | Review

Description aoyama 2006-04-22 01:04:58 UTC
Please describe the problem:
Inputting multilanguage characters such as Japanese on GTK applications, GTK
notifies incorrect spotlocation.
Therfore, The candidate list displays over inputting characters.

Actually, unless it enables spotlocation notification of on-the-spot style on
X11, this problem doesn't happen.


Steps to reproduce:
1. Enable spotlocation notification of on-the-spot style on X11. Patch the
spotlocation patch, see http://sourceforge.jp/projects/kimera/files/ 
2. Input multilanguage characters.
3. Convert it and show the candidate list.


Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
Patch to modify the y-point of spotlocation:

--- gtk+-2.8.15/modules/input/gtkimcontextxim.c.orig    2005-07-01
03:42:44.000000000 +0900
+++ gtk+-2.8.15/modules/input/gtkimcontextxim.c 2006-04-01 07:50:38.000000000 +0900
@@ -830,7 +830,7 @@
     return;

   spot.x = area->x;
-  spot.y = area->y;
+  spot.y = area->y + area->height;

   preedit_attr = XVaCreateNestedList (0,
                                      XNSpotLocation, &spot,

-----
Please confirm this patch.
I checked it, see the captured image.
http://kimera.sourceforge.jp/
Comment 1 Behdad Esfahbod 2007-11-30 20:25:19 UTC
*** Bug 150052 has been marked as a duplicate of this bug. ***
Comment 2 Takao Fujiwara 2007-12-03 11:11:40 UTC
Created attachment 100106 [details] [review]
Patch for modules/input/gtkimcontextxim.c

I think the submitter's patch is right.
Can we integrate the patch?

I also found the similar problem 158678.
Comment 3 Takao Fujiwara 2007-12-20 05:10:27 UTC
Can we integrate the patch?
cc'ing the maintainer.
Comment 4 Matthias Clasen 2008-09-28 03:21:54 UTC
2008-09-27  Matthias Clasen  <mclasen@redhat.com>

        Bug 339367 – Incorrect spotlocation

        * modules/input/gtkimcontextxim.c: Correct the spot location
        for on-the-spot style.