[gimp] app: return from gimp_display_shell_space_pressed() immediately when...
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: return from gimp_display_shell_space_pressed() immediately when...
- Date: Fri, 16 Mar 2018 18:52:31 +0000 (UTC)
commit 8aaf77ba1100f9b3dcc49569f48e1d98c9874af8
Author: Jehan <jehan girinstud io>
Date: Fri Mar 16 19:32:10 2018 +0100
app: return from gimp_display_shell_space_pressed() immediately when...
... scrolling in progress.
In particular, this could happen while panning with mouse middle click
and hitting space. This space should simply be ignored.
app/display/gimpdisplayshell-tool-events.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index c72690f..da4d7ba 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -1580,7 +1580,7 @@ gimp_display_shell_space_pressed (GimpDisplayShell *shell,
{
Gimp *gimp = gimp_display_get_gimp (shell->display);
- if (shell->space_release_pending)
+ if (shell->space_release_pending || shell->scrolling)
return;
if (! gimp_display_shell_keyboard_grab (shell, event))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]