summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-01-12 16:36:49 +0000
committerAshod Nakashian <ashnakash@gmail.com>2016-01-12 23:41:39 +0000
commit928a7a3e92e085a880ecf0d3ad5e40d41b7779bf (patch)
treebe88eca41f08154cb2567698afb519f3053698ec
parent2e098c48501ba193a7062b4afe2e768c0996464c (diff)
tdf#97075 - don't render sdr overlays before we paint.
Change-Id: I0b22af14c7dd684c25cfee26e8c12b95b40479ee Reviewed-on: https://gerrit.libreoffice.org/21406 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r--include/vcl/scheduler.hxx18
-rw-r--r--svx/source/sdr/overlay/overlaymanagerbuffered.cxx2
2 files changed, 11 insertions, 9 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx
index 13d168727b78..95303ee48f5e 100644
--- a/include/vcl/scheduler.hxx
+++ b/include/vcl/scheduler.hxx
@@ -27,14 +27,16 @@ struct ImplSVData;
struct ImplSchedulerData;
enum class SchedulerPriority {
- HIGHEST = 0,
- HIGH = 1,
- RESIZE = 2,
- REPAINT = 3,
- MEDIUM = 3,
- LOW = 4,
- LOWER = 5,
- LOWEST = 6
+ HIGHEST = 0,
+ HIGH = 1,
+ RESIZE = 2,
+ REPAINT = 3,
+ MEDIUM = 3,
+ POST_PAINT = 4,
+ DEFAULT_IDLE = 5,
+ LOW = 6,
+ LOWER = 7,
+ LOWEST = 8
};
class VCL_DLLPUBLIC Scheduler
diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
index cba94c6f9091..ddc49ae5592b 100644
--- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
+++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
@@ -384,7 +384,7 @@ namespace sdr
mbRefreshWithPreRendering(bRefreshWithPreRendering)
{
// Init timer
- maBufferIdle.SetPriority( SchedulerPriority::HIGH );
+ maBufferIdle.SetPriority( SchedulerPriority::POST_PAINT );
maBufferIdle.SetIdleHdl(LINK(this, OverlayManagerBuffered, ImpBufferTimerHandler));
}