Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
mutter.17919
mutter-bsc1133445-Fix-time-comparison-bug-causi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mutter-bsc1133445-Fix-time-comparison-bug-causing-hang.patch of Package mutter.17919
From 6be56de14010b175eba76b6dcaa44184a0d7545c Mon Sep 17 00:00:00 2001 From: Jeff Smith <whydoubt@gmail.com> Date: Wed, 31 Jan 2018 23:27:19 -0600 Subject: [PATCH] backends/x11: Fix time-comparison bug causing hang A comparison in translate_device_event() does not account for the fact that X's clock wraps about every 49.7 days. When triggered, this causes an unresponsive GUI. Replace simple less-than comparison with XSERVER_TIME_IS_BEFORE macro, which accounts for the wrapping of X's clock. Closes: https://gitlab.gnome.org/GNOME/mutter/issues/12 Index: mutter-3.20.3/src/backends/x11/meta-backend-x11.c =================================================================== --- mutter-3.20.3.orig/src/backends/x11/meta-backend-x11.c +++ mutter-3.20.3/src/backends/x11/meta-backend-x11.c @@ -129,19 +129,7 @@ translate_device_event (MetaBackendX11 * } if (!device_event->send_event && device_event->time != CurrentTime) - { - if (device_event->time < priv->latest_evtime) - { - /* Emulated pointer events received after XIRejectTouch is received - * on a passive touch grab will contain older timestamps, update those - * so we dont get InvalidTime at grabs. - */ - device_event->time = priv->latest_evtime; - } - - /* Update the internal latest evtime, for any possible later use */ - priv->latest_evtime = device_event->time; - } + priv->latest_evtime = device_event->time; } static void
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor