[gtk/matthiasc/for-master: 6/6] stackswitcher: Fix switch-while-drag functionality



commit f7f06f810be6310306abbd005bc0b43bd8bf2906
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 2 00:24:54 2020 -0500

    stackswitcher: Fix switch-while-drag functionality

 gtk/gtkstackswitcher.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index 00bd50ece5..f32d6d4e76 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]