Merge pull request #76924 from stolk/fixuninit

x11: Do not use uninitialized timestamps.
This commit is contained in:
Rémi Verschelde 2023-05-11 11:48:23 +02:00
commit 0c7c35bdc6
No known key found for this signature in database
GPG key ID: C3336907360768E1

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