Fix crash on wayland with drm-backend