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