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
This commit is contained in:
David Redondo 2024-08-20 16:53:14 +02:00
parent 76eb1d20b9
commit aa88904b53

View file

@ -82,7 +82,7 @@ DecoratedClientImpl::DecoratedClientImpl(Window *window, KDecoration2::Decorated
int fallAsleepDelay = QApplication::style()->styleHint(QStyle::SH_ToolTip_FallAsleepDelay); int fallAsleepDelay = QApplication::style()->styleHint(QStyle::SH_ToolTip_FallAsleepDelay);
this->m_toolTipFallAsleep.setRemainingTime(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; m_toolTipShowing = true;
}); });
} }