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:
parent
76eb1d20b9
commit
aa88904b53
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue