From 1ace4b886dea865c5f6c3251c3bc06c819eb366d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 16 Sep 2013 18:39:55 -0400 Subject: [PATCH] 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. --- gdk/wayland/gdkwindow-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index 9551670638..70abf77da5 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -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);