From 57edfacba455c8883a09378a3073ff7561bc43c8 Mon Sep 17 00:00:00 2001 From: Greg V Date: Wed, 2 Jan 2019 20:08:43 +0300 Subject: rootston: fix crash with fullscreen surfaces Fixes fullscreen mode in e.g. RetroArch and ioquake3. --- rootston/output.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootston/output.c b/rootston/output.c index f950d4dc..df8328dd 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -67,6 +67,10 @@ static void surface_for_each_surface(struct wlr_surface *surface, static void view_for_each_surface(struct roots_view *view, struct layout_data *layout_data, wlr_surface_iterator_func_t iterator, void *user_data) { + if (!view->wlr_surface) { + return; + } + layout_data->x = view->box.x; layout_data->y = view->box.y; layout_data->width = view->wlr_surface->current.width; -- cgit v1.2.3