Wayland 1.0.x

Adapt wayland code to new API