aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-18 19:50:34 +0100
committeremersion <contact@emersion.fr>2018-01-18 19:50:34 +0100
commitbed752210803fa8ed915b6fc86037f4b94d3f6f8 (patch)
treecf25afd6c489817031519e9bc8def5710b127405 /rootston
parentbde255933eb4cd2bab2d310725ab5de39467b900 (diff)
rootston: fix segfault when destroying unmapped xwayland view
This happens when closing chromium for instance.
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 38ca7241..8d90ebb7 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -414,7 +414,9 @@ static void output_damage_whole_surface(struct roots_output *output,
void output_damage_whole_view(struct roots_output *output,
struct roots_view *view) {
- output_damage_whole_surface(output, view->wlr_surface, view->x, view->y);
+ if (view->wlr_surface != NULL) {
+ output_damage_whole_surface(output, view->wlr_surface, view->x, view->y);
+ }
// TODO: subsurfaces, popups, etc
}