From 5b28d046740da8375f0a2b9841c5706da8946006 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 22 Apr 2010 17:15:08 +0200 Subject: [PATCH] app: queue the draw timeout only if paused_count reaches zero --- app/tools/gimpdrawtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c index b3287a3370..bd450b0ca3 100644 --- a/app/tools/gimpdrawtool.c +++ b/app/tools/gimpdrawtool.c @@ -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);