summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBenjamin Otte <otte.benjamin@googlemail.com>2023-04-29 18:11:21 +0000
committerBenjamin Otte <otte.benjamin@googlemail.com>2023-04-29 18:11:21 +0000
commit6cc1548c5f820223adab0b4e8a8d92afd2cb7d89 (patch)
treeac55238fd839df1249d1540fb83a5308a15353e2 /gdk
parenta24a924a6bd0a3090da594b31681d55128d96d4c (diff)
parent24302315fb8f46be141a9eda60e8d107c84a948d (diff)
downloadgtk+-6cc1548c5f820223adab0b4e8a8d92afd2cb7d89.tar.gz
Merge branch 'wip/carlosg/x11-artifacts' into 'main'
gdk/x11: Invalidate whole surface after size change See merge request GNOME/gtk!5857
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdksurface-x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index 9f6c7b2d2d..db8a8770ed 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -201,6 +201,8 @@ gdk_x11_surface_update_size (GdkX11Surface *self,
cairo_surface_set_device_scale (self->cairo_surface, scale, scale);
}
+ gdk_surface_invalidate_rect (surface, NULL);
+
return TRUE;
}