Bug 2060988 - ibus lookup table almost always badly positioned in Plasma(Wayland)
Summary: ibus lookup table almost always badly positioned in Plasma(Wayland)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-04 20:15 UTC by Mike FABIAN
Modified: 2023-09-14 05:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-14 05:29:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Video showing that the lookup table usually pops up far away from the cursor positon in gedit, kwrite, konsole, LibreOfficeWriter (302.69 KB, video/mp4)
2022-03-04 20:15 UTC, Mike FABIAN
no flags Details
Screenshot from Plasma(Xorg) showing wrong position of lookup table using konsole (388.47 KB, image/png)
2022-03-04 20:20 UTC, Mike FABIAN
no flags Details
IBus showing the lookup table at correct position for Qt apps in GNOME Wayland, after applying Qt upstream patches (150.53 KB, image/png)
2023-02-22 09:02 UTC, vtq
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ibus ibus issues 2408 0 None open Keyboard layout changes do not work in Plasma Wayland 2023-02-23 01:39:52 UTC

Internal Links: 2061664

Description Mike FABIAN 2022-03-04 20:15:23 UTC
Created attachment 1864184 [details]
Video showing that the lookup table usually pops up far away from the cursor positon  in gedit, kwrite, konsole, LibreOfficeWriter

Fedora-Workstation-Live-x86_64-36-20220216.n.0.iso installed in qemu-kvm with all current updates.

The ibus lookup table appears at weird positions far away from the cursor almost always on Plasma (Wayland).

I tested:

- gedit
- kwrite
- konsole
- LibreOffice writer
- xterm

For xterm the lookup table appears where it should, close to the cursor position.

For the others the lookup table almost always appears far away from the cursor position.

See attached video.

Comment 1 Mike FABIAN 2022-03-04 20:20:43 UTC
Created attachment 1864185 [details]
Screenshot from Plasma(Xorg) showing wrong position of lookup table using konsole

This screenshot shows that the position of the lookup table is sometimes badly positioned on Plasma(Xorg) as well, although this seems rare.

I could reproduce such a bad positioning on Plasma(Xorg) only using konsole and even with konsole it happens rarely and seems to depend on where exactly I place the konsole window.

On Plasma(Wayland) the positioning is almost always wrong, except when using xterm.

Comment 2 fujiwara 2022-03-07 07:17:43 UTC
Theorically this could not be fixed in IBus side in Wayland since the display coordinate is mamanged by Wayland compositor.
You could also see the same issue in GNOME Wayland with ibus module instead of wayland module.
Closing this as duplicated of bug #2054719 until we get better idea.

*** This bug has been marked as a duplicate of bug 2054719 ***

Comment 3 fujiwara 2022-03-07 07:21:40 UTC
Ah, ok. We may enhance the issue using Xorg coordinate a little to follow the change of IBus GTK IM module if Xwayland is available.

Comment 4 vtq 2023-02-22 09:00:28 UTC
(In reply to fujiwara from comment #2)
> Theorically this could not be fixed in IBus side in Wayland since the
> display coordinate is mamanged by Wayland compositor.
> You could also see the same issue in GNOME Wayland with ibus module instead
> of wayland module.

With upstream patches https://codereview.qt-project.org/c/qt/qtbase/+/445920 and https://codereview.qt-project.org/c/qt/qtbase/+/447069 applied to Qt, Qt applications running in native Wayland backend now work properly in GNOME Wayland environment using ibus im-module, showing the window at the correct position. They previously also had this issue, see https://bugzilla.redhat.com/show_bug.cgi?id=2061664.

I don't know if the patches would also fix the issue in Plasma Wayland environment.

Comment 5 vtq 2023-02-22 09:02:56 UTC
Created attachment 1945679 [details]
IBus showing the lookup table at correct position for Qt apps in GNOME Wayland, after applying Qt upstream patches

Comment 6 fujiwara 2023-02-23 01:39:53 UTC
(In reply to vtq from comment #4)
> (In reply to fujiwara from comment #2)
> > Theorically this could not be fixed in IBus side in Wayland since the
> > display coordinate is mamanged by Wayland compositor.
> > You could also see the same issue in GNOME Wayland with ibus module instead
> > of wayland module.
> 
> With upstream patches https://codereview.qt-project.org/c/qt/qtbase/+/445920
> and https://codereview.qt-project.org/c/qt/qtbase/+/447069 applied to Qt, Qt
> applications running in native Wayland backend now work properly in GNOME
> Wayland environment using ibus im-module, showing the window at the correct
> position. They previously also had this issue, see
> https://bugzilla.redhat.com/show_bug.cgi?id=2061664.
> 
> I don't know if the patches would also fix the issue in Plasma Wayland
> environment.

No, your patch is not relative with this issue and this is not a simple scaling issue likes GNOME.
I'm working on this issue.

Comment 7 Ben Cotton 2023-04-25 16:54:50 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 8 fujiwara 2023-09-14 05:29:57 UTC
Now IBus panel implements Wayland input-method which can put the candidate popup window with the right position in Plasma Wayland in Fedora 39.
https://fedoraproject.org/wiki/Changes/IBus_1.5.29#Setup


Note You need to log in before you can comment on or make changes to this bug.