Fixed error in one of the branches of the topmost algorithm.
authorAlejandro Pinheiro <apinheiro@igalia.com>
Wed, 26 Aug 2009 07:37:43 +0000 (09:37 +0200)
committerAlejandro G. Castro <alex@igalia.com>
Wed, 26 Aug 2009 07:37:43 +0000 (09:37 +0200)
* hildon/hildon-pannable-area.c
(hildon_pannable_area_get_topmost): change the computation of the
co-ordinates transformed when no one of the children is a topmost

Fixes: NB#133252 (Opening any feed item from RSS always opens the
first feed item in browser)

Signed-off-by: Alejandro G. Castro <alex@igalia.com>

ChangeLog
hildon/hildon-pannable-area.c

index f194eec..789b5c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-08-26  Alejandro Pinheiro <apinheiro@igalia.com>
+
+       * hildon/hildon-pannable-area.c
+       (hildon_pannable_area_get_topmost): change the computation of the
+       co-ordinates transformed when no one of the children is a topmost
+
+       Fixes: NB#133252 (Opening any feed item from RSS always opens the
+       first feed item in browser)
+
 2009-08-26  Alejandro G. Castro  <alex@igalia.com>
 
        * hildon/hildon-pannable-area.c,
index 9eaaf41..3814865 100644 (file)
@@ -1880,9 +1880,9 @@ hildon_pannable_area_get_topmost (GdkWindow * window,
                                                             tx, ty, mask);
         if (!selected_window) {
           if (tx)
-            *tx = x;
+            *tx = x-wx;
           if (ty)
-            *ty = y;
+            *ty = y-wy;
           selected_window = child;
         }
       } else {