[gimp] app: ignore button 1 release if we have no pointer grab



commit febc1da4be436155fd3f9bb050fbed13f999106f
Author: Michael Natterer <mitch gimp org>
Date:   Wed Apr 6 22:44:08 2011 +0200

    app: ignore button 1 release if we have no pointer grab
    
    which is more correct than the previous commit

 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 6bdd8ea..13d743d 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -646,7 +646,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
           case 1:
             state &= ~GDK_BUTTON1_MASK;
 
-            if (shell->scrolling)
+            if (! shell->pointer_grabbed)
               return TRUE;
 
             if (! shell->space_pressed && ! shell->space_release_pending)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]