Fix SimulateUserActivity not working for a second when resuming from
author Lamarque V. Souza
()
committer Lamarque V. Souza
()
commit 5c47f16d67065e239c380cc369a1da854acef19a
tree 0f47881fcb7152fa6edb3c4263625762cbbef4b9
parent 28b79d8d04cce4d0a0899cadcc8fe6fd69d38e01
Fix SimulateUserActivity not working for a second when resuming from
ram/disk.

The problem is in krunner/lock/lockprocess.cc, LockProcess::lock(...),
lines:

mBusy = true;
...
QTimer::singleShot(1000, this, SLOT(slotDeadTimePassed()));

The "dead-time" makes LockProcess ignores any SimulateUserActivity
requests during that one second-time.
I have added "mInitialLock = true" in LockProcess::signalPipeSignal() to
simulate the "--showunlock" parameter after the one second-time.

BUG: 269737
FIXED-IN: 4.6.3
krunner/lock/lockprocess.cc