Warning: this removes functionality (#1) In preparation for split xwm as a client, xwm client won't be able to modify or access weston_surface directly like that. This will be re-implemented later using set_opaque_region instead, so we disable for now.
Signed-off-by: Tiago Vignatti <tiago.vigna...@intel.com> --- src/xwayland/window-manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c index 9e0fdb2..a2db694 100644 --- a/src/xwayland/window-manager.c +++ b/src/xwayland/window-manager.c @@ -744,7 +744,7 @@ weston_wm_window_draw_decoration(void *data) } cairo_destroy(cr); - +#if 0 if (window->surface) { pixman_region32_fini(&window->surface->pending.opaque); pixman_region32_init_rect(&window->surface->pending.opaque, 0, 0, @@ -765,6 +765,7 @@ weston_wm_window_draw_decoration(void *data) width - 2 * t->margin, height - 2 * t->margin); } +#endif } static void @@ -774,6 +775,7 @@ weston_wm_window_schedule_repaint(struct weston_wm_window *window) int width, height; if (window->frame_id == XCB_WINDOW_NONE) { +#if 0 if (window->surface != NULL) { weston_wm_window_get_frame_size(window, &width, &height); pixman_region32_fini(&window->surface->pending.opaque); @@ -781,6 +783,7 @@ weston_wm_window_schedule_repaint(struct weston_wm_window *window) width, height); window->surface->geometry.dirty = 1; } +#endif return; } -- 1.7.9.5 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel