diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2015-01-31 17:40:48 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2015-02-04 15:44:09 +0100 |
commit | 06d731428ef6cf93c7333e8228bfb6088853b52f (patch) | |
tree | dbdcbed014fdbc7f1369e888a5903e493b3aabcb /include/vcl/timer.hxx | |
parent | e6a58b5e69b83e01b5291b1d8629927e05447797 (diff) |
make idle timers actually activate only when idle
Without this, they can activate after any call to the event processing,
so they may activate in cases such as when updating progressbar while
loading a document, or on repeated user input (so things like showing
spellchecking get updated when the app is busy redrawing). This change
makes idle timers activate only when there's nothing more for the event
loop to process. It's a bit of a question if this doesn't break something
that happens to expect idle timers to be not-really-idle timers, but oh well.
No change for non-X11 platforms, as there's I don't know how to check
the event queues.
Change-Id: I074a88f2f5eeb4b456a11916a0ec2ad6f54dfbab
Diffstat (limited to 'include/vcl/timer.hxx')
-rw-r--r-- | include/vcl/timer.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index 8da2381cd7e7..d93e7c01cdac 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -61,8 +61,11 @@ public: Timer& operator=( const Timer& rTimer ); + /// @internal static void ImplDeInitTimer(); - static void ImplTimerCallbackProc(); + /// @internal + /// @p idle - allow also idle timers + static void ImplTimerCallbackProc( bool idle ); /// Process all pending idle tasks ahead of time in priority order. static void ProcessAllIdleHandlers(); |