[gtk+] wayland: Always attach null surfaces on hide
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Always attach null surfaces on hide
- Date: Tue, 29 Oct 2013 21:12:51 +0000 (UTC)
commit 1ace4b886dea865c5f6c3251c3bc06c819eb366d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Sep 16 18:39:55 2013 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 9551670..70abf77 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]