Fixed refocus crash with the DRM backend

This commit is contained in:
Keith Bowes 2020-02-25 23:27:59 -05:00
parent 410b1e2ced
commit 8679cf9aa4

View file

@ -57,7 +57,7 @@ static void xdg_surface_unmap(struct wl_listener *listener, void *data) {
focus_view(current_view, current_view->xdg_surface->surface);
}
/* Otherwise, focus the next view, if any. */
else if (next_view->xdg_surface->surface) {
else if (next_view->xdg_surface->surface && wlr_surface_is_xdg_surface(next_view->xdg_surface->surface)) {
focus_view(next_view, next_view->xdg_surface->surface);
}
}