Fix the previous commit

We need to actually use the right coordinates.
This commit is contained in:
Matthias Clasen 2020-01-02 00:43:27 -05:00
parent f7f06f810b
commit 7a1aefc7f3

View 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;