summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-07 16:47:04 +0100
committerMichael Stahl <mstahl@redhat.com>2017-09-08 14:52:56 +0200
commit64c51f83fde713c7887fee608e35d6fb7492a064 (patch)
treea05fcd271870ed63aec7481c7ea50f4ec7f0d2c7
parentdc2bcaa3967095044f025855ec95436d501554f2 (diff)
tdf#110737 set user-events to a lower priority than system redraw
Change-Id: Ic6672fcce4cb5516d388fee22120383ccc70a4a5 Reviewed-on: https://gerrit.libreoffice.org/42067 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtk3gtkdata.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkdata.cxx b/vcl/unx/gtk3/gtk3gtkdata.cxx
index f59034a50657..559819aab026 100644
--- a/vcl/unx/gtk3/gtk3gtkdata.cxx
+++ b/vcl/unx/gtk3/gtk3gtkdata.cxx
@@ -831,7 +831,10 @@ void GtkData::PostUserEvent()
else // nothing pending anyway
{
m_pUserEvent = g_idle_source_new();
- g_source_set_priority (m_pUserEvent, G_PRIORITY_HIGH);
+ // tdf#110737 set user-events to a lower priority than system redraw
+ // events, which is G_PRIORITY_HIGH_IDLE + 20, so presentations
+ // queue-redraw has a chance to be fulfilled
+ g_source_set_priority (m_pUserEvent, G_PRIORITY_HIGH_IDLE + 30);
g_source_set_can_recurse (m_pUserEvent, TRUE);
g_source_set_callback (m_pUserEvent, call_userEventFn,
static_cast<gpointer>(this), nullptr);