[Xfce4-commits] <midori:master> Fix Mouse Gestures to handle events properly again

Christian Dywan noreply at xfce.org
Tue Nov 17 23:44:02 CET 2009


Updating branch refs/heads/master
         to c8d02719cc7a18d0c17a2b6391e6800b8f6e3c46 (commit)
       from 9eefb25bb6f6d0994e36bead4c8a14daccab6c0a (commit)

commit c8d02719cc7a18d0c17a2b6391e6800b8f6e3c46
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Nov 17 23:35:53 2009 +0100

    Fix Mouse Gestures to handle events properly again

 extensions/mouse-gestures.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/extensions/mouse-gestures.c b/extensions/mouse-gestures.c
index b6bddbc..eedaa57 100644
--- a/extensions/mouse-gestures.c
+++ b/extensions/mouse-gestures.c
@@ -75,7 +75,6 @@ mouse_gestures_button_press_event_cb (GtkWidget*     web_view,
             gesture->start.y = event->button.y;
             gesture->last = event->button.button;
         }
-
         return TRUE;
     }
 
@@ -106,9 +105,11 @@ mouse_gestures_motion_notify_event_cb (GtkWidget*     web_view,
             gesture->end.x = x;
             gesture->end.y = y;
         }
+
+        return TRUE;
     }
 
-    return TRUE;
+    return FALSE;
 }
 
 static gboolean
@@ -175,11 +176,13 @@ mouse_gestures_button_release_event_cb (GtkWidget*     web_view,
                     midori_browser_activate_action (browser, "Back");
             }
         }
-    }
 
-    mouse_gesture_clear (gesture);
+        mouse_gesture_clear (gesture);
 
-    return TRUE;
+        return TRUE;
+    }
+
+    return FALSE;
 }
 
 static void



More information about the Xfce4-commits mailing list