Created attachment 172196 [details] tooltip_wrong_place SUMMARY When using a (tablet) stylus, tooltips appear at a random location STEPS TO REPRODUCE 1. Open an app 2. Hover with the stylus above something that creates a tooltip (like window decoration) Can reproduce on both Master and 6.1.3 ADDITIONAL INFORMATION Note: On the screenshot the cursor appears near the tooltip. On my screen the cursor was actually hovering the close button.
I suspect the underlying reason is that the stylus cursor and the mouse cursor are different, and the tooltip is displayed at the mouse cursor.
(In reply to fanzhuyifan from comment #1) > I suspect the underlying reason is that the stylus cursor and the mouse > cursor are different, and the tooltip is displayed at the mouse cursor. Yes you are correct. They appear in fact at the mouse cursor location.
(In reply to duha.bugs from comment #2) > (In reply to fanzhuyifan from comment #1) > > I suspect the underlying reason is that the stylus cursor and the mouse > > cursor are different, and the tooltip is displayed at the mouse cursor. > > Yes you are correct. They appear in fact at the mouse cursor location. TBH I still don't understand why we need two separate cursors... That seems to be causing quite a few problems.
(In reply to fanzhuyifan from comment #3) > TBH I still don't understand why we need two separate cursors... That seems > to be causing quite a few problems. As best as I can tell this an upstream decision. So I don't think this will change.
(In reply to duha.bugs from comment #4) > (In reply to fanzhuyifan from comment #3) > > TBH I still don't understand why we need two separate cursors... That seems > > to be causing quite a few problems. > > As best as I can tell this an upstream decision. So I don't think this will > change. I think on wayland this is actually implemented im kwin
I can confirm it. Difference for me the cursor crosshair appears where it should. Is that just something on the screenshot?
nvm just read your note.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6286
Git commit aa88904b538a67e0f8827d193b794b05c4b408fb by David Redondo. Committed on 20/08/2024 at 20:54. Pushed by vladz into branch 'master'. decorations: Show tooltip at current cursor position instead of at the mouse position. Fixes tooltips showing up in wrong places when using tablets. FIXED-IN: 6.1.5 M +1 -1 src/decorations/decoratedclient.cpp https://invent.kde.org/plasma/kwin/-/commit/aa88904b538a67e0f8827d193b794b05c4b408fb
Git commit a6f5f16c88cef21f99dfebee2ba506f860aec279 by Vlad Zahorodnii. Committed on 20/08/2024 at 21:45. Pushed by vladz into branch 'Plasma/6.1'. decorations: Show tooltip at current cursor position instead of at the mouse position. Fixes tooltips showing up in wrong places when using tablets. FIXED-IN: 6.1.5 (cherry picked from commit aa88904b538a67e0f8827d193b794b05c4b408fb) Co-authored-by: David Redondo <kde@david-redondo.de> M +1 -1 src/decorations/decoratedclient.cpp https://invent.kde.org/plasma/kwin/-/commit/a6f5f16c88cef21f99dfebee2ba506f860aec279