mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
Merge pull request #2759 from minus7/fix-view-container-null
Fix crash if view has no container
This commit is contained in:
commit
681ed1826d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue