diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-01-12 16:36:49 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-01-12 20:55:08 +0000 |
commit | 16c7f8916661df24f4681ec82f6bd4d7ad85d141 (patch) | |
tree | 692a05ccc4facee0bf4518378d1e981fa20862a8 | |
parent | a16cef75e829cd48445905fc67de625640bf6398 (diff) |
tdf#97075 - don't render sdr overlays before we paint.
Change-Id: I0b22af14c7dd684c25cfee26e8c12b95b40479ee
Reviewed-on: https://gerrit.libreoffice.org/21400
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r-- | include/vcl/scheduler.hxx | 18 | ||||
-rw-r--r-- | svx/source/sdr/overlay/overlaymanagerbuffered.cxx | 2 |
2 files changed, 11 insertions, 9 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx index 1f440c651be1..760c228b174e 100644 --- a/include/vcl/scheduler.hxx +++ b/include/vcl/scheduler.hxx @@ -25,14 +25,16 @@ 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 f68d7eafdc57..9b62afe406d9 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)); } |