From 8108e08dbfddf678f9505c2f854ae39d27e8319c Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 22 Jul 2021 16:31:03 +0200 Subject: [PATCH] Keep the old time stamp and sequence number On second thought this seems like a good idea. --- src/wine-host/editor.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index fe5b1464..22f0c08a 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -643,11 +643,10 @@ void Editor::handle_x11_events() noexcept { // We will reset the `response_type`, because the X11 // server will have already set the first bit for us to - // indicate that it's a synthetic event. All other - // fields can stay the same. + // indicate that it's a synthetic event. Most likely not + // needed, but it feels like the right thing to do. All + // other fields can stay the same. event->response_type = event_type; - event->sequence = 0; - event->time = XCB_CURRENT_TIME; event->event = wine_window; xcb_send_event(x11_connection.get(), true, wine_window,