mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +00:00
stackswitcher: Fix switch-while-drag functionality
This commit is contained in:
parent
e02fd80adb
commit
f7f06f810b
@ -265,6 +265,8 @@ gtk_stack_switcher_drag_motion (GtkWidget *widget,
|
||||
g_hash_table_iter_init (&iter, priv->buttons);
|
||||
while (g_hash_table_iter_next (&iter, NULL, &value))
|
||||
{
|
||||
int cx, cy;
|
||||
gtk_widget_translate_coordinates (GTK_WIDGET (self), value, x, y, &cx, &cy);
|
||||
if (gtk_widget_contains (GTK_WIDGET (value), x, y))
|
||||
{
|
||||
button = GTK_WIDGET (value);
|
||||
|
Loading…
Reference in New Issue
Block a user