Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: redraw too late after system wakeup. #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tangxinfa
Copy link

The time text displayed always wrong after system wakeuped, fix it by schedule the redraw timer at every second, and redraw screen only if time text require to change.

When system is hibernated or paused, the lock time draws on the screen may not
take effects, when we wakeup our computer, the time displayed is wrong for
minutes, use a one second interval timer will fix this problem.
@tangxinfa tangxinfa force-pushed the fix-wrong-timetext-after-wakeup branch from b8a95d4 to 61337df Compare November 5, 2019 01:49
@tangxinfa
Copy link
Author

I try to launch i3lock before system hibernate, after wake up the time displayed
is not updated in time.

The root cause maybe because the LID is closed or the screen is shutdown, so we
can't guarantee the time displayed will always take effects.

We can simply use a one second repeat timer to fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant