Bug 443895 - [wayland] LSP popups appear in the window's top left corner
Summary: [wayland] LSP popups appear in the window's top left corner
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.08.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-10-17 17:13 UTC by Denis Lisov
Modified: 2021-10-25 19:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.12


Attachments
screenshot of the original problem (61.16 KB, image/png)
2021-10-24 16:11 UTC, Denis Lisov
Details
screenshot of the problem after applying the suggested patch (115.88 KB, image/png)
2021-10-24 16:15 UTC, Denis Lisov
Details

Note You need to log in before you can comment on or make changes to this bug.
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