summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/gtk/gtkdata.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/unx/gtk/gtkdata.hxx
parente6a58b5e69b83e01b5291b1d8629927e05447797 (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 'vcl/inc/unx/gtk/gtkdata.hxx')
-rw-r--r--vcl/inc/unx/gtk/gtkdata.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx
index 9c2c76eaa4d3..e2702049d67d 100644
--- a/vcl/inc/unx/gtk/gtkdata.hxx
+++ b/vcl/inc/unx/gtk/gtkdata.hxx
@@ -99,6 +99,7 @@ class GtkData : public SalGenericData
GSource *m_pUserEvent;
oslMutex m_aDispatchMutex;
oslCondition m_aDispatchCondition;
+ bool blockIdleTimeout;
public:
GtkData( SalInstance *pInstance );
@@ -120,6 +121,7 @@ public:
virtual bool ErrorTrapPop( bool bIgnoreError ) SAL_OVERRIDE;
inline GtkSalDisplay *GetGtkDisplay() const;
+ bool BlockIdleTimeout() const { return blockIdleTimeout; }
};
class GtkSalFrame;