wayland: Always attach null surfaces on hide

Destroying the surface isn't really appropriate, as the GtkWindow
is still realized and we won't necessarily know how to reconstruct it.
This commit is contained in:
Jasper St. Pierre 2013-09-16 18:39:55 -04:00
parent 301d4ee681
commit 1ace4b886d

View File

@ -1101,7 +1101,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window,
if (impl->surface)
{
if (impl->use_custom_surface && !is_destroy)
if (!is_destroy)
{
wl_surface_attach (impl->surface, NULL, 0, 0);
wl_surface_commit (impl->surface);