mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
Fix crash if view has no container
This commit is contained in:
parent
01b8e171b8
commit
95d7d5f4ee
@ -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);
|
wlr_log(WLR_DEBUG, "View %p updated CSD to %i", view, enabled);
|
||||||
if (enabled && view->border != B_CSD) {
|
if (enabled && view->border != B_CSD) {
|
||||||
view->saved_border = view->border;
|
view->saved_border = view->border;
|
||||||
if (container_is_floating(view->container)) {
|
if (view->container && container_is_floating(view->container)) {
|
||||||
view->border = B_CSD;
|
view->border = B_CSD;
|
||||||
}
|
}
|
||||||
} else if (!enabled && view->border == B_CSD) {
|
} else if (!enabled && view->border == B_CSD) {
|
||||||
|
Loading…
Reference in New Issue
Block a user