diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-07 16:47:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-08 10:31:37 +0200 |
commit | 9ca0f91b02822a5c0b28a651f82821cd11d9f6ed (patch) | |
tree | 2dba1269aa6bb3cb7201f44468b94d228835d051 | |
parent | 7b9cb381702a408c3cf54bfaa1f8a7b2c30882a7 (diff) |
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@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkdata.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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); |