aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-04 16:02:33 +0100
committerGitHub <noreply@github.com>2019-01-04 16:02:33 +0100
commitaebd74243f8f23a3a6a0f82531977b569629ebe2 (patch)
treec658baf850cd1087935e7797bcfa093f167e7cdf /rootston
parent610f5bfc7712657fafea507f3d830cd6d60dc836 (diff)
parent57edfacba455c8883a09378a3073ff7561bc43c8 (diff)
Merge pull request #1448 from myfreeweb/fix-retroarch-crash
rootston: fix crash with fullscreen surfaces
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c4
1 files changed, 4 insertions, 0 deletions
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;