mirror of https://github.com/GNOME/gimp.git
app: queue the draw timeout only if paused_count reaches zero
This commit is contained in:
parent
2f5d2bc85f
commit
5b28d04674
|
@ -272,9 +272,9 @@ gimp_draw_tool_resume (GimpDrawTool *draw_tool)
|
|||
draw_tool->paused_count--;
|
||||
|
||||
#ifdef USE_TIMEOUT
|
||||
if (! draw_tool->draw_timeout)
|
||||
if (draw_tool->paused_count == 0 && ! draw_tool->draw_timeout)
|
||||
draw_tool->draw_timeout =
|
||||
gdk_threads_add_timeout_full (G_PRIORITY_HIGH,
|
||||
gdk_threads_add_timeout_full (G_PRIORITY_HIGH_IDLE,
|
||||
DRAW_TIMEOUT,
|
||||
(GSourceFunc) gimp_draw_tool_draw_timeout,
|
||||
draw_tool, NULL);
|
||||
|
|
Loading…
Reference in New Issue