also look at shell->space_release_pending when deciding whether to return

2006-09-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_space_released): also look at
	shell->space_release_pending when deciding whether to return early.
This commit is contained in:
Michael Natterer 2006-09-22 14:17:33 +00:00 committed by Michael Natterer
parent d79ec4556a
commit 59a3dd1405
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-09-22 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_space_released): also look at
shell->space_release_pending when deciding whether to return early.
2006-09-22 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/colorxhtml.py: create output that at

View File

@ -542,7 +542,7 @@ gimp_display_shell_space_released (GimpDisplayShell *shell,
{
Gimp *gimp = shell->display->image->gimp;
if (! shell->space_pressed)
if (! shell->space_pressed && ! shell->space_release_pending)
return;
switch (GIMP_DISPLAY_CONFIG (gimp->config)->space_bar_action)
@ -568,7 +568,8 @@ gimp_display_shell_space_released (GimpDisplayShell *shell,
gdk_display_keyboard_ungrab (gtk_widget_get_display (shell->canvas), time);
shell->space_pressed = FALSE;
shell->space_pressed = FALSE;
shell->space_release_pending = FALSE;
}
gboolean