From 8995694a2f9bf1f12b326973bf2491f1e4e64a57 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 29 Jan 2019 08:05:55 +1000 Subject: Remove bad assertion in container_handle_fullscreen_reparent The assertion could trigger when called from workspace_wrap_children. --- sway/tree/container.c | 5 +---- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3-54-g00ecf