Send HoverMove event to selected window decoration if buttons are pressed
Ensures that e.g. decoration buttons get the Leave events.
This commit is contained in:
parent
735ffc8ab2
commit
545c8b190e
1 changed files with 5 additions and 0 deletions
|
@ -521,6 +521,11 @@ void InputRedirection::processPointerMotion(const QPointF &pos, uint32_t time)
|
||||||
if (!areButtonsPressed()) {
|
if (!areButtonsPressed()) {
|
||||||
// update pointer window only if no button is pressed
|
// update pointer window only if no button is pressed
|
||||||
updatePointerWindow();
|
updatePointerWindow();
|
||||||
|
} else if (m_pointerDecoration) {
|
||||||
|
const QPointF p = m_globalPointer - m_pointerDecoration->client()->pos();
|
||||||
|
QHoverEvent event(QEvent::HoverMove, p, p);
|
||||||
|
QCoreApplication::instance()->sendEvent(m_pointerDecoration->decoration(), &event);
|
||||||
|
m_pointerDecoration->client()->processDecorationMove();
|
||||||
}
|
}
|
||||||
#if HAVE_WAYLAND
|
#if HAVE_WAYLAND
|
||||||
if (auto seat = findSeat()) {
|
if (auto seat = findSeat()) {
|
||||||
|
|
Loading…
Reference in a new issue