From 95d7d5f4eed205aacaf43116625a5cf06928939b Mon Sep 17 00:00:00 2001 From: minus Date: Wed, 3 Oct 2018 21:01:34 +0200 Subject: Fix crash if view has no container --- sway/tree/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/tree/view.c b/sway/tree/view.c index 9c7c44e9..73ce55ac 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -341,7 +341,7 @@ void view_update_csd_from_client(struct sway_view *view, bool enabled) { wlr_log(WLR_DEBUG, "View %p updated CSD to %i", view, enabled); if (enabled && view->border != B_CSD) { view->saved_border = view->border; - if (container_is_floating(view->container)) { + if (view->container && container_is_floating(view->container)) { view->border = B_CSD; } } else if (!enabled && view->border == B_CSD) { -- cgit v1.2.3