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) {