diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-11-24 16:59:29 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-11-24 19:46:02 +0000 |
commit | 87199d3829257420429057336283c55be6ae7481 (patch) | |
tree | 40f63144f9b20cebbaa6cb6fd64184e27c7b192f /include/vcl/scheduler.hxx | |
parent | 9b52b8999be86e5c6e5f5901b2640b16f08a2323 (diff) |
vcl: re-introduce idle handling.
The idea here is that we should process 'idle' events - like re-paint
after we have processed any OS messages - such as key/mouse input,
window re-size events etc.
The previous approach wasn't achieving this - it was processing a single
idle event each time around the main-loop iteration; urk.
Lubos implemented something -like- this, the vestiges of it need cleaning
up and removing in: 06d731428ef6cf93c7333e8228bfb6088853b52f but it was
disabled (most likely because it broke gtk in tdf#91727, which was itself
broken by using silly values for timeouts in the scheduler (now fixed))
Tested on Windows, gtk, kde4, unx-generic.
Change-Id: I7756bca874779c00f72b372cacb7745d0f189f66
Reviewed-on: https://gerrit.libreoffice.org/20158
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/vcl/scheduler.hxx')
-rw-r--r-- | include/vcl/scheduler.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx index be9df9e69e5a..5771f3af782f 100644 --- a/include/vcl/scheduler.hxx +++ b/include/vcl/scheduler.hxx @@ -94,7 +94,7 @@ public: // Process one pending Timer with highhest priority static void CallbackTaskScheduling( bool ignore ); /// Calculate minimum timeout - and return its value. - static sal_uInt64 CalculateMinimumTimeout(); + static sal_uInt64 CalculateMinimumTimeout( bool &bHasActiveIdles ); /// Process one pending task ahead of time with highhest priority. static void ProcessTaskScheduling( bool bTimer ); }; |