[PATCH weston 1/2] compositor-wayland: Flag the wayland backend as nested

Derek Foreman derekf at osg.samsung.com
Wed Apr 1 10:37:33 PDT 2015


Nested compositors may have different requirements than un-nested ones.
The current need stems from having to avoid the new repaint delay when
in a nested compositor.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
 src/compositor-wayland.c | 2 ++
 src/compositor.h         | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index 7e59ecd..46085f1 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -1929,6 +1929,8 @@ wayland_compositor_create(struct wl_display *display, int use_pixman,
 	if (c == NULL)
 		return NULL;
 
+	c->base.nested = true;
+
 	if (weston_compositor_init(&c->base, display, argc, argv,
 				   config) < 0)
 		goto err_free;
diff --git a/src/compositor.h b/src/compositor.h
index 5f49237..f294302 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -688,6 +688,7 @@ struct weston_compositor {
 
 	clockid_t presentation_clock;
 	int32_t repaint_msec;
+	bool nested;
 
 	int exit_code;
 };
-- 
2.1.4



More information about the wayland-devel mailing list