Bug 443895

Summary: [wayland] LSP popups appear in the window's top left corner
Product: [Applications] kate Reporter: Denis Lisov <dennis.lissov>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, kde
Priority: NOR Keywords: wayland-only
Version First Reported In: 21.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 21.12
Sentry Crash Report:
Attachments: screenshot of the original problem
screenshot of the problem after applying the suggested patch

Description Denis Lisov 2021-10-17 17:13:22 UTC
STEPS TO REPRODUCE
1. Open a project with LSP support
2. Hover over something that produces a "rich" tooltip

OBSERVED RESULT

The tooltip appears in the top left corner (over the "File" in menubar)


EXPECTED RESULT

The tooltip should appear at cursor.


SOFTWARE/OS VERSIONS
Kate 21.08.2
Operating System: Gentoo Linux (rolling, current ~amd64)
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2 (Gentoo 5.15.2-r10)
Kernel Version: 5.14.11 (64-bit)
Graphics Platform: Wayland
Comment 1 Christoph Cullmann 2021-10-24 13:01:34 UTC
I have now some proper working Wayland session, will try if I can reproduce this.
Comment 2 Christoph Cullmann 2021-10-24 14:43:30 UTC
Yes, can unfortunately confirm this bug :/
Comment 3 Bug Janitor Service 2021-10-24 14:53:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/503
Comment 4 Christoph Cullmann 2021-10-24 14:54:07 UTC
Could you try my fix? For me that helps. I CC'd some more people on the merge request to get an opinion what the "right" fix would be.
Comment 5 Denis Lisov 2021-10-24 16:11:14 UTC
Created attachment 142826 [details]
screenshot of the original problem

Added a screenshot of how it used to look before applying the suggested patch.
Comment 6 Denis Lisov 2021-10-24 16:15:10 UTC
Created attachment 142827 [details]
screenshot of the problem after applying the suggested patch

The patch definitely affected the position of the window, but it's still at an unexpected location (the red arrow points at the cursor location).
Comment 7 Bug Janitor Service 2021-10-25 11:50:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/505