From 57866fb2677c7bf436ed2a27ae74c7bb0ad0ea19 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 25 Nov 2013 15:46:06 -0500 Subject: [PATCH] wayland-surface: Don't rewrite input/opaque regions if the client doesn't attach any --- src/wayland/meta-wayland-surface.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 597ee03d7..f5007cf81 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -319,8 +319,11 @@ meta_wayland_surface_commit (struct wl_client *client, surface->pending.dx, surface->pending.dy); } - meta_window_set_opaque_region (surface->window, surface->pending.opaque_region); - meta_window_set_input_region (surface->window, surface->pending.input_region); + if (surface->pending.opaque_region) + meta_window_set_opaque_region (surface->window, surface->pending.opaque_region); + if (surface->pending.input_region) + meta_window_set_input_region (surface->window, surface->pending.input_region); + surface_process_damage (surface, surface->pending.damage); }