diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 562ec2f8a9..e55c49863d 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -691,10 +691,11 @@ typedef struct { static void scroll_adjust(GtkWidget* widget, void* data) { const AdjustData* p = data; + widget->allocation.x += p->dx; + widget->allocation.y += p->dy; + if (widget->window == p->window) { - widget->allocation.x += p->dx; - widget->allocation.y += p->dy; // GtkFrame requires a queue_resize, otherwise parts of // the frame newly exposed by the scroll are not drawn. // To be safe, do it for all widgets.