[gtk/fix-picking-with-transforms] Fix picking with transforms




commit 9ea56e4c79746ec5f84852c0278a71205a762d5a
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 12 20:53:41 2021 -0400

    Fix picking with transforms
    
    When transforms include scales, we weren't picking
    children properly. The special-case in gtk_widget_do_pick
    only applies to 2D translations.

 gtk/gtkwidget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d4b6ad5191..c45810a455 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -10089,7 +10089,7 @@ gtk_widget_do_pick (GtkWidget    *widget,
 
       if (child_priv->transform)
         {
-          if (gsk_transform_get_category (child_priv->transform) >= GSK_TRANSFORM_CATEGORY_2D_AFFINE)
+          if (gsk_transform_get_category (child_priv->transform) >= GSK_TRANSFORM_CATEGORY_2D_TRANSLATE)
             {
               graphene_point_t transformed_p;
 


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