diff --git a/src/events.cpp b/src/events.cpp index c09f615af9..b9bb9bbd36 100644 --- a/src/events.cpp +++ b/src/events.cpp @@ -951,6 +951,7 @@ bool X11Client::buttonPressEvent(xcb_window_t w, int button, int state, int x, i } else { QMouseEvent event(QEvent::MouseButtonPress, QPointF(x, y), QPointF(x_root, y_root), x11ToQtMouseButton(button), x11ToQtMouseButtons(state), x11ToQtKeyboardModifiers(state)); + event.setTimestamp(time); event.setAccepted(false); QCoreApplication::sendEvent(decoration(), &event); if (!event.isAccepted()) { diff --git a/src/input.cpp b/src/input.cpp index bdba5f0700..4965277b4d 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1195,6 +1195,7 @@ public: return actionResult.second; } QMouseEvent e(event->type(), p, event->globalPos(), event->button(), event->buttons(), event->modifiers()); + e.setTimestamp(event->timestamp()); e.setAccepted(false); QCoreApplication::sendEvent(decoration->decoration(), &e); if (!e.isAccepted() && event->type() == QEvent::MouseButtonPress) {