[gtk/fix-picking-with-transforms: 3/3] Fix picking with transforms
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-picking-with-transforms: 3/3] Fix picking with transforms
- Date: Thu, 13 May 2021 00:58:22 +0000 (UTC)
commit bf454e948d2dc0c0c11c0bd7dfec0bf929c922b1
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]