From aa88904b538a67e0f8827d193b794b05c4b408fb Mon Sep 17 00:00:00 2001 From: David Redondo Date: Tue, 20 Aug 2024 16:53:14 +0200 Subject: [PATCH] decorations: Show tooltip at current cursor position instead of at the mouse position. Fixes tooltips showing up in wrong places when using tablets. BUG: 491143 FIXED-IN: 6.1.5 --- src/decorations/decoratedclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decorations/decoratedclient.cpp b/src/decorations/decoratedclient.cpp index 3d2ab5a2b9..b875957130 100644 --- a/src/decorations/decoratedclient.cpp +++ b/src/decorations/decoratedclient.cpp @@ -82,7 +82,7 @@ DecoratedClientImpl::DecoratedClientImpl(Window *window, KDecoration2::Decorated int fallAsleepDelay = QApplication::style()->styleHint(QStyle::SH_ToolTip_FallAsleepDelay); this->m_toolTipFallAsleep.setRemainingTime(fallAsleepDelay); - QToolTip::showText(Cursors::self()->mouse()->pos().toPoint(), this->m_toolTipText); + QToolTip::showText(Cursors::self()->currentCursor()->pos().toPoint(), this->m_toolTipText); m_toolTipShowing = true; }); }