summaryrefslogtreecommitdiffstats
path: root/vcl/inc/saltimer.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2015-01-31 17:40:48 +0100
committerLuboš Luňák <l.lunak@collabora.com>2015-02-04 15:44:09 +0100
commit06d731428ef6cf93c7333e8228bfb6088853b52f (patch)
treedbdcbed014fdbc7f1369e888a5903e493b3aabcb /vcl/inc/saltimer.hxx
parentActivate mork driver on windows 64 bit build (diff)
downloadcore-06d731428ef6cf93c7333e8228bfb6088853b52f.tar.gz
core-06d731428ef6cf93c7333e8228bfb6088853b52f.zip
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 'vcl/inc/saltimer.hxx')
-rw-r--r--vcl/inc/saltimer.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/saltimer.hxx b/vcl/inc/saltimer.hxx
index 3bdfbc358da6..1e1a941c1287 100644
--- a/vcl/inc/saltimer.hxx
+++ b/vcl/inc/saltimer.hxx
@@ -47,10 +47,10 @@ public:
m_pProc = pProc;
}
- void CallCallback()
+ void CallCallback( bool idle )
{
if( m_pProc )
- m_pProc();
+ m_pProc( idle );
}
};