Skip to content
Snippets Groups Projects
Unverified Commit 937d6a65 authored by Clayton Craft's avatar Clayton Craft
Browse files

main: don't push render events to queue when osk is hidden (MR 160)

Fixes #142
parent 613a3702
No related branches found
No related tags found
No related merge requests found
......@@ -483,7 +483,8 @@ int main(int argc, char **args)
}
// If any animations are enabled and running, continue to push render events to the
// event queue
if (config.animations && (luksDev.unlockRunning() || keyboard.isInSlideAnimation())) {
bool keyboardIsAnimating = keyboard.isInSlideAnimation() && show_osk;
if (config.animations && (luksDev.unlockRunning() || keyboardIsAnimating)) {
SDL_PushEvent(&renderEvent);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment