vcl/opengl/gdiimpl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d24b264c4a47db0a3bad1ccc55c2b03b18de441c
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Fri Mar 8 10:41:07 2019 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Mar 8 12:43:08 2019 +0100

    vcl opengl: avoid task priority warning on cursor blink
    
    warn:vcl.schedule:22358:22358:include/vcl/task.hxx:107: Priority will just 
change after next schedule!
    
    Just don't set the priority if it's already set to the correct value, so
    we can avoid a warning each time the visible cursor is shown or hidden.
    
    Change-Id: Ie11164db0af4cfba06a620c9b2426cb903af3887
    Reviewed-on: https://gerrit.libreoffice.org/68907
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index e847cb4ec324..caecec0d4621 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -63,7 +63,8 @@ public:
     virtual void Invoke() override
     {
         m_pImpl->doFlush();
-        SetPriority( TaskPriority::HIGHEST );
+        if (GetPriority() != TaskPriority::HIGHEST)
+            SetPriority(TaskPriority::HIGHEST);
         Stop();
     }
 };
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to