summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-01-29 08:05:55 +1000
committerFurkan Sahin <furkan-dev@proton.me>2019-01-29 08:05:55 +1000
commit5408ff35406b1963e82d90f3873b4671b139157c (patch)
tree0db761da7732a357879c5367614d8797585090f0
parent422352f12bc24ce8ce5475796d539883df1e653c (diff)
Remove bad assertion in container_handle_fullscreen_reparent
The assertion could trigger when called from workspace_wrap_children.
-rw-r--r--sway/tree/container.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 0415d63c..0ebdc51d 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1182,10 +1182,7 @@ list_t *container_get_current_siblings(struct sway_container *container) {
}
void container_handle_fullscreen_reparent(struct sway_container *con) {
- if (!sway_assert(con->workspace, "Expected con to have a workspace")) {
- return;
- }
- if (con->fullscreen_mode != FULLSCREEN_WORKSPACE ||
+ if (con->fullscreen_mode != FULLSCREEN_WORKSPACE || !con->workspace ||
con->workspace->fullscreen == con) {
return;
}