From 7a2e350d2bb7930118fb8a59bd4cbe1e280bbc15 Mon Sep 17 00:00:00 2001 From: Bram Stolk Date: Wed, 10 May 2023 11:27:14 -0700 Subject: [PATCH] x11: Do not use uninitialized timestamps. Fixes #76922 --- platform/linuxbsd/x11/display_server_x11.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp index 86423f798fd..043a18349f5 100644 --- a/platform/linuxbsd/x11/display_server_x11.cpp +++ b/platform/linuxbsd/x11/display_server_x11.cpp @@ -186,6 +186,7 @@ bool DisplayServerX11::_refresh_device_info() { xi.absolute_devices.clear(); xi.touch_devices.clear(); xi.pen_inverted_devices.clear(); + xi.last_relative_time = 0; int dev_count; XIDeviceInfo *info = XIQueryDevice(x11_display, XIAllDevices, &dev_count);