summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-03-13 21:33:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-03-13 21:33:23 -0400
commit8010bc45968668b62a77b5866863c3e077935bef (patch)
treeb7b597b0b000de57b6393964db508a29139f5c43
parent5097c1defcfdc979f9a37542060a6116f44dd984 (diff)
downloadgtk+-8010bc45968668b62a77b5866863c3e077935bef.tar.gz
x11: Update surface size for popups too
Without this, the back buffers of the wrong size keep being used, causing flickery misdraws, as seen when expanding the expander in the popover in widget-factory.
-rw-r--r--gdk/x11/gdksurface-x11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index b9e122a91a..9a1b71698e 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -1319,6 +1319,7 @@ x11_surface_resize (GdkSurface *surface,
impl->unscaled_height = height * impl->surface_scale;
surface->width = width;
surface->height = height;
+ _gdk_surface_update_size (surface);
_gdk_x11_surface_update_size (GDK_X11_SURFACE (surface));
}
else