wayland: Reset server decoration interface on window mapping

The wl_surface is destroyed and recreated when the window is
mapped/unmapped. As we have a new wl_surface we need to create a new
server_decoration object for that surface.
This commit is contained in:
David Edmundson
2018-06-28 11:12:59 +01:00
parent 32ae97f13a
commit b0bfe606aa

View File

@ -2938,11 +2938,13 @@ gdk_wayland_window_map (GdkWindow *window)
else
{
gdk_wayland_window_create_xdg_toplevel (window);
gdk_wayland_window_announce_decoration_mode (window);
}
}
else
{
gdk_wayland_window_create_xdg_toplevel (window);
gdk_wayland_window_announce_decoration_mode (window);
}
impl->mapped = TRUE;