Merge pull request #316 from jadahl/wayland-input

Wayland input work.
Fix crash on wayland with drm-backend