toytoolkit: match parent surface type when adding a subsurface
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Fri, 4 Apr 2014 08:04:18 +0000 (10:04 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 7 Apr 2014 05:37:45 +0000 (22:37 -0700)
commitcd186fbfaf88003175346644d077efa7e70627a2
tree702368a666ccee7da888bc7e7f32bca010c63dcf
parent27efc0653026383f880dd101ed67163e1868fe6a
toytoolkit: match parent surface type when adding a subsurface

When adding a subsurface (to display a tooltip) in toytoolkit,
we now get the parent window surface type (SHM or EGL) and
define the new surface type as the same.

This fixes crashes with tooltips in cases like having
Cairo-EGL available but running the X11 compositor.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
clients/window.c
clients/window.h