vcl/source/app/scheduler.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 5554fff70e5b79c4eef1a419bda1b3b831d54bdd Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Tue Feb 25 06:38:50 2025 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Tue Feb 25 12:24:56 2025 +0100 vcl: better variable naming for annotating low priority idles. Change-Id: I80dd443a864bc63b4e0214a13efdd76474daa57f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182140 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Jenkins diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index 4ca7d544f13a..57e292d34ed4 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx @@ -524,7 +524,8 @@ void Scheduler::CallbackTaskScheduling() rSchedCtx.mpSchedulerStack = pMostUrgent; rSchedCtx.mpSchedulerStackTop = pMostUrgent; - bool bIsHighPriorityIdle = pMostUrgent->mePriority >= TaskPriority::HIGH_IDLE; + // high priority idle handlers have smaller numerical values for mePriority + bool bIsLowerPriorityIdle = pMostUrgent->mePriority >= TaskPriority::HIGH_IDLE; // invoke the task Unlock(); @@ -533,7 +534,7 @@ void Scheduler::CallbackTaskScheduling() // in the OS event queue. This will often effectively compress such events and repaint only // once at the end, improving performance in cases such as repeated zooming with a complex document. bool bDelayInvoking - = bIsHighPriorityIdle + = bIsLowerPriorityIdle && (rSchedCtx.mnIdlesLockCount > 0 || Application::AnyInput(VclInputFlags::MOUSE | VclInputFlags::KEYBOARD | VclInputFlags::PAINT));