[PATCH weston 02/16] xwm: Disable opaque_rect settings
Tiago Vignatti
tiago.vignatti at intel.com
Wed Dec 12 07:26:14 PST 2012
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.vignatti at 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
More information about the wayland-devel
mailing list