Fix the previous commit
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Jan 2020 05:43:27 +0000 (00:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 Jan 2020 05:43:27 +0000 (00:43 -0500)
We need to actually use the right coordinates.

gtk/gtkstackswitcher.c

index f32d6d4e76f08e9355bfb2a12a78809e254b256e..07de3af6178841b2b726eaa8ba110b2a2b0cea54 100644 (file)
@@ -267,7 +267,7 @@ gtk_stack_switcher_drag_motion (GtkWidget *widget,
     {
       int cx, cy;
       gtk_widget_translate_coordinates (GTK_WIDGET (self), value, x, y, &cx, &cy);
-      if (gtk_widget_contains (GTK_WIDGET (value), x, y))
+      if (gtk_widget_contains (GTK_WIDGET (value), cx, cy))
         {
           button = GTK_WIDGET (value);
           retval = TRUE;