[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Fri Sep 8 08:31:58 UTC 2017
vcl/unx/gtk3/gtk3gtkdata.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 9ca0f91b02822a5c0b28a651f82821cd11d9f6ed
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Sep 7 16:47:04 2017 +0100
tdf#110737 set user-events to a lower priority than system redraw
Change-Id: Ic6672fcce4cb5516d388fee22120383ccc70a4a5
Reviewed-on: https://gerrit.libreoffice.org/42066
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkdata.cxx b/vcl/unx/gtk3/gtk3gtkdata.cxx
index 29937ef036b2..efa2e7fa3cf6 100644
--- a/vcl/unx/gtk3/gtk3gtkdata.cxx
+++ b/vcl/unx/gtk3/gtk3gtkdata.cxx
@@ -826,7 +826,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);
More information about the Libreoffice-commits
mailing list