Misplaced IME window in 2.4.0

Jürgen Spitzmüller jspitzm at gmail.com
Sat Apr 6 06:15:11 UTC 2024


Am Freitag, dem 05.04.2024 um 23:01 -0400 schrieb Scott Kostyshak:
> On Thu, Mar 21, 2024 at 11:31:35AM GMT, Allan Chain wrote:
> > Hello, LyX developers!
> > 
> > I'm trying out LyX 2.4.0-rc3 (qt6) on KDE6+Wayland, and I'm using
> > fcitx5 to
> > input CJK characters. I found that the candidate window of the
> > input method
> > is always on the top left corner of the window, regardless of the
> > cursor
> > position. I think it's a regression since 2.3.7 does not have such
> > problem.
> > 
> > After looking into the source code, I found that the position hint
> > (Qt::ImCursorRectangle) is only updated when preedit is enabled.
> > Although
> > enabling preedit eases the problem, the experience is still not
> > very smooth.
> > Specifically, when the position of the cursor is changed, for
> > example by
> > clicking, the position hint for the candidate window is not
> > immediately
> > updated, and thus the candidate window pops up in a wrong position.
> > Only
> > after some keystrokes triggering preedit event that the position of
> > the
> > candidate window is correctly updated.
> > 
> > I'm not familiar with LyX codebase, but in my opinion, a better
> > solution is
> > to update the position hint for the input method every time the
> > cursor
> > position changes.
> > 
> > I'm happy to provide more information to help fixing this.
> 
> Hi Allan,
> 
> Thanks a lot for reaching out to the list! I don't know anything
> about
> this code, but I did want to bump this email thread so maybe someone
> more knowledgeable has an idea.

Also it might make sense to file an issue on trac, since Koji is
looking after IM issues (see https://www.lyx.org/trac/ticket/11723),
and I am not sure he reads this list.

-- 
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 508 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240406/1522662a/attachment.asc>


More information about the lyx-devel mailing list