Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
devel:hw
:
x86:x86-common
>
xorg-x11-drv-synaptics
> TimeBackwardSetting.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File TimeBackwardSetting.patch of Package xorg-x11-drv-synaptics
From cf5d7f01f5aeb564ca4f076a59a1ba47be188a7d Mon Sep 17 00:00:00 2001 Message-Id: <cf5d7f01f5aeb564ca4f076a59a1ba47be188a7d.1291794220.git.yan.i.li@intel.com> From: Yan Li <yan.i.li@intel.com> Date: Wed, 8 Dec 2010 15:37:46 +0800 Subject: [PATCH] Fix touchpad lock when time goes backward (BMC#10507) Based on Neo Fang's patch. Signed-off-by: Yan Li <yan.i.li@intel.com> --- tools/syndaemon.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tools/syndaemon.c b/tools/syndaemon.c index d06fe5f..e95a435 100644 --- a/tools/syndaemon.c +++ b/tools/syndaemon.c @@ -224,6 +224,10 @@ main_loop(Display *display, double idle_time, int poll_delay) if (keyboard_activity(display)) last_activity = current_time; + /* Time may go backward */ + if (last_activity > current_time) { + last_activity = current_time - idle_time - 1; + } if (current_time > last_activity + idle_time) { /* Enable touchpad */ toggle_touchpad(True); } else { /* Disable touchpad */ -- 1.7.2.3