commit fc039f0759c1293fc270b631b035176f6924797b
parent e28101e6e1ed757fe8a7402c5123ee7e58546895
Author: Brian Ashworth <RedSoxFan@users.noreply.github.com>
Date: Wed, 8 Aug 2018 15:36:17 -0400
Merge pull request #2423 from manio/master
[RFC] Fix segv when sway is terminating
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/tree/view.c b/sway/tree/view.c
@@ -603,7 +603,7 @@ void view_unmap(struct sway_view *view) {
struct sway_container *surviving_ancestor = container_destroy(view->swayc);
// If the workspace wasn't reaped
- if (surviving_ancestor->type >= C_WORKSPACE) {
+ if (surviving_ancestor && surviving_ancestor->type >= C_WORKSPACE) {
struct sway_container *ws = surviving_ancestor->type == C_WORKSPACE ?
surviving_ancestor :
container_parent(surviving_ancestor, C_WORKSPACE);