x11: Do not use uninitialized timestamps.

Fixes #76922
This commit is contained in:
Bram Stolk 2023-05-10 11:27:14 -07:00
parent c80a2b4fe9
commit 7a2e350d2b

View File

@ -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);