summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2014-02-24 19:07:08 +0000
committerKristian Høgsberg <krh@bitplanet.net>2014-04-06 23:00:37 -0700
commit40d02288cbf41a9fb3b53a71455847db259030a1 (patch)
treeb98ea19f58804108ee60a30d41684afb5ba57870 /clients
parentb1fff418a3f1562f784f6dde9d33b1f900a81cff (diff)
downloadweston-40d02288cbf41a9fb3b53a71455847db259030a1.tar.gz
nested: Disable cairo on the subsurfaces
The subsurface widgets on the nested example aren't using Cairo to render so we should turn it off to prevent the toy toolkit from creating a redundant extra surface for it. This is particularly important since Mesa commit 6c9d6898fdfd7e2 because the surface that the toolkit tries to create is zero-sized and that patch prevents that from working. This was causing weston-nested to crash.
Diffstat (limited to 'clients')
-rw-r--r--clients/nested.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/nested.c b/clients/nested.c
index d75e953a..3bdb9613 100644
--- a/clients/nested.c
+++ b/clients/nested.c
@@ -976,6 +976,8 @@ ss_surface_init(struct nested_surface *surface)
nested,
SUBSURFACE_SYNCHRONIZED);
+ widget_set_use_cairo(ss_surface->widget, 0);
+
ss_surface->surface = widget_get_wl_surface(ss_surface->widget);
ss_surface->subsurface = widget_get_wl_subsurface(ss_surface->widget);