app: increase GimpSelectionTools idle priority to avoid flickering

In gimp_selection_tool_start_change(), increase the priority of the
idle source used for hiding the selection so that it's run before
the canvas is redrawn, to avoid flickering the previous selection.
This commit is contained in:
Ell 2019-04-25 09:51:38 -04:00
parent 3db167083a
commit 3369958525
1 changed files with 3 additions and 2 deletions

View File

@ -708,9 +708,10 @@ gimp_selection_tool_start_change (GimpSelectionTool *sel_tool,
* restarting the selection if we don't visit the main loop between
* the start_change() and end_change() calls.
*/
sel_tool->idle_id = g_idle_add (
sel_tool->idle_id = g_idle_add_full (
G_PRIORITY_HIGH_IDLE,
(GSourceFunc) gimp_selection_tool_idle,
sel_tool);
sel_tool, NULL);
}
}