Report correct input timestamps for popup keyboard events

SeatInterface::setTimestamp() must be called before sending an event.


(cherry picked from commit 82dfdf3ea3)

Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
wilder/Plasma/6.2
Vlad Zahorodnii 1 year ago
parent 9680e4f1f3
commit 709fa395ff
  1. 1
      src/popup_input_filter.cpp

@ -86,6 +86,7 @@ bool PopupInputFilter::keyEvent(KeyEvent *event)
QCoreApplication::sendEvent(internalWindow->handle(), event);
} else if (auto waylandWindow = qobject_cast<WaylandWindow *>(last)) {
if (!passToInputMethod(event)) {
waylandServer()->seat()->setTimestamp(event->timestamp());
passToWaylandServer(event);
}
}

Loading…
Cancel
Save