projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e02fd80
)
stackswitcher: Fix switch-while-drag functionality
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 2 Jan 2020 05:24:54 +0000
(
00:24
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 2 Jan 2020 05:24:54 +0000
(
00:24
-0500)
gtk/gtkstackswitcher.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstackswitcher.c
b/gtk/gtkstackswitcher.c
index 00bd50ece56d4623066b1399434b58ffd92f5bbd..f32d6d4e76f08e9355bfb2a12a78809e254b256e 100644
(file)
--- 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);