summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-02-23 16:06:20 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2014-02-23 16:07:38 -0500
commit084c2feb7e27baf34474227fd0904b6d3dd35e4d (patch)
treeeec6fe3bed31b906d907e2f89b3dfbae202734c4
parent6efd6611f2c13e53e3d5064aebd94ee806e3ffbd (diff)
downloadgtk+-084c2feb7e27baf34474227fd0904b6d3dd35e4d.tar.gz
wayland: Don't destroy the cairo surface when resizing it
The code in GDK is incredibly broken and nobody is quite sure what's right-side-up and what's upside down, but this breaks mutter-wayland now, so let's remove it. It might leak, but we should probably do a full restructuring of GDK drawing to fix it.
-rw-r--r--gdk/wayland/gdkwindow-wayland.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index d980bf8699..82dafb21ff 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1488,8 +1488,6 @@ gdk_window_wayland_resize_cairo_surface (GdkWindow *window,
gint height)
{
/* cairo image surfaces cannot be resized */
- cairo_surface_destroy (surface);
-
return NULL;
}