macos: invalidate surface contents when mapping

This commit is contained in:
Christian Hergert 2022-03-02 00:48:06 -08:00 committed by Christian Hergert
parent 2961cc44c5
commit 0aabf47f09

View File

@ -884,6 +884,7 @@ _gdk_macos_surface_show (GdkMacosSurface *self)
{ {
gdk_surface_set_is_mapped (GDK_SURFACE (self), TRUE); gdk_surface_set_is_mapped (GDK_SURFACE (self), TRUE);
gdk_surface_request_layout (GDK_SURFACE (self)); gdk_surface_request_layout (GDK_SURFACE (self));
gdk_surface_invalidate_rect (GDK_SURFACE (self), NULL);
gdk_surface_thaw_updates (GDK_SURFACE (self)); gdk_surface_thaw_updates (GDK_SURFACE (self));
} }
} }