276
mir_toolkit::MirWaitHandle* mir_toolkit::mir_surface_set_type(MirSurface *surf,
279
return surf ? surf->configure(mir_surface_attrib_type, type) : NULL;
282
MirSurfaceType mir_toolkit::mir_surface_get_type(MirSurface *surf)
284
MirSurfaceType type = mir_surface_type_normal;
288
// Only the client will ever change the type of a surface so it is
289
// safe to get the type from a local cache surf->attrib().
291
int t = surf->attrib(mir_surface_attrib_type);
292
type = static_cast<MirSurfaceType>(t);