X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bff035cf5a9005a3aaa9644979a7dd7bd624dc53..8946ede10c2702c7acbb194fe8bd2793d7fb8358:/src/gtk/win_gtk.cpp diff --git a/src/gtk/win_gtk.cpp b/src/gtk/win_gtk.cpp index 42ea74144e..7243df8692 100644 --- a/src/gtk/win_gtk.cpp +++ b/src/gtk/win_gtk.cpp @@ -339,10 +339,11 @@ extern "C" { static void scroll_adjust(GtkWidget* widget, void* data) { const AdjustData* p = static_cast(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.