[Libreoffice-commits] core.git: Branch 'feature/priorities' - vcl/source

Tobias Madl tobias.madl.dev at gmail.com
Tue Jan 13 01:16:03 PST 2015


 vcl/source/app/svapp.cxx |    4 +++-
 vcl/source/app/timer.cxx |    3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit a373e59936a31a81d013869cf3b6cec2711ddab7
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date:   Tue Jan 13 09:14:46 2015 +0000

    Idle: Better place for Idle handling
    
    Change-Id: I2e5462544d83572e8206bb1db92a2b9df032281b

diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 0ed3219..cba619a 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -354,9 +354,11 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents )
     {
         while ( pSVData->mbNotAllTimerCalled )
             Timer::ImplTimerCallbackProc();
-        Timer::Timer::ProcessAllIdleHandlers();
     }
 
+    //Process all idles
+    Timer::Timer::ProcessAllIdleHandlers();
+
     pSVData->maAppData.mnDispatchLevel++;
     // do not wait for events if application was already quit; in that
     // case only dispatch events already available
diff --git a/vcl/source/app/timer.cxx b/vcl/source/app/timer.cxx
index 0dea56d..0348543 100644
--- a/vcl/source/app/timer.cxx
+++ b/vcl/source/app/timer.cxx
@@ -234,7 +234,8 @@ void Timer::ImplTimerCallbackProc()
 void Timer::ProcessAllIdleHandlers()
 {
     // process all pending Idle timers
-    while (ImplTimerData* pTimerData =
+    ImplTimerData* pTimerData;
+    while (pTimerData =
                 ImplTimerData::GetFirstIdle())
     {
         pTimerData->Invoke();


More information about the Libreoffice-commits mailing list