aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-03 21:22:25 +0200
committerGitHub <noreply@github.com>2018-10-03 21:22:25 +0200
commit681ed1826ddb8e05daf0ab30575f4b1f8cd23239 (patch)
tree6c22875ff4b80dc5d5e78a2e4c7412ba5cd083a1
parent7fdc557f1e16f14dea080714b3a261daf8f4634e (diff)
parent95d7d5f4eed205aacaf43116625a5cf06928939b (diff)
Merge pull request #2759 from minus7/fix-view-container-null
Fix crash if view has no container
-rw-r--r--sway/tree/view.c2
1 files changed, 1 insertions, 1 deletions
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) {