wayland-surface: Don't rewrite input/opaque regions if the client doesn't attach any

This commit is contained in:
Jasper St. Pierre 2013-11-25 15:46:06 -05:00
parent d3bc7570d0
commit 57866fb267

View File

@ -319,8 +319,11 @@ meta_wayland_surface_commit (struct wl_client *client,
surface->pending.dx, surface->pending.dy); surface->pending.dx, surface->pending.dy);
} }
meta_window_set_opaque_region (surface->window, surface->pending.opaque_region); if (surface->pending.opaque_region)
meta_window_set_input_region (surface->window, surface->pending.input_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); surface_process_damage (surface, surface->pending.damage);
} }