Blame SOURCES/0001-tdf-110737-set-user-events-to-a-lower-priority-than-.patch

91334d
From 00e609146a029c2cb010f7a617c77cddcdbf1513 Mon Sep 17 00:00:00 2001
91334d
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
91334d
Date: Thu, 7 Sep 2017 16:47:04 +0100
91334d
Subject: [PATCH] tdf#110737 set user-events to a lower priority than system
91334d
 redraw
91334d
91334d
Change-Id: Ic6672fcce4cb5516d388fee22120383ccc70a4a5
91334d
---
91334d
 vcl/unx/gtk3/gtk3gtkdata.cxx | 5 ++++-
91334d
 1 file changed, 4 insertions(+), 1 deletion(-)
91334d
91334d
diff --git a/vcl/unx/gtk3/gtk3gtkdata.cxx b/vcl/unx/gtk3/gtk3gtkdata.cxx
91334d
index b2c298b..5b043e8 100644
91334d
--- a/vcl/unx/gtk3/gtk3gtkdata.cxx
91334d
+++ b/vcl/unx/gtk3/gtk3gtkdata.cxx
91334d
@@ -839,7 +839,10 @@ void GtkData::PostUserEvent()
91334d
     else // nothing pending anyway
91334d
     {
91334d
         m_pUserEvent = g_idle_source_new();
91334d
-        g_source_set_priority (m_pUserEvent, G_PRIORITY_HIGH);
91334d
+        // tdf#110737 set user-events to a lower priority than system redraw
91334d
+        // events, which is G_PRIORITY_HIGH_IDLE + 20, so presentations
91334d
+        // queue-redraw has a chance to be fulfilled
91334d
+        g_source_set_priority (m_pUserEvent,  G_PRIORITY_HIGH_IDLE + 30);
91334d
         g_source_set_can_recurse (m_pUserEvent, TRUE);
91334d
         g_source_set_callback (m_pUserEvent, call_userEventFn,
91334d
                                static_cast<gpointer>(this), nullptr);
91334d
-- 
91334d
2.9.4
91334d