Bail out early if the rectangle function is RECT_DEAD. This prevents

2007-11-05  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.c (gimp_rectangle_tool_motion): Bail
	out early if the rectangle function is RECT_DEAD. This prevents
	flickering.

svn path=/trunk/; revision=24071
This commit is contained in:
Martin Nordholts 2007-11-05 20:24:11 +00:00 committed by Martin Nordholts
parent 0e70d5f5a7
commit bd1db1a1c8
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-11-05 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c (gimp_rectangle_tool_motion): Bail
out early if the rectangle function is RECT_DEAD. This prevents
flickering.
2007-11-05 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c: also don't show the shell

View File

@ -1021,10 +1021,12 @@ gimp_rectangle_tool_motion (GimpTool *tool,
options = GIMP_RECTANGLE_TOOL_GET_OPTIONS (tool);
options_private = GIMP_RECTANGLE_OPTIONS_GET_PRIVATE (options);
/* This is the only case when the motion events should be ignored --
* we're just waiting for the button release event to execute.
/* Motion events should be ignored when we're just waiting for the
* button release event to execute or if the user has grabbed a dead
* area of the rectangle.
*/
if (private->function == RECT_EXECUTING)
if (private->function == RECT_EXECUTING ||
private->function == RECT_DEAD)
return;
current_x = ROUND (coords->x);