aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 7c3b4049..3d22d3e4 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -212,6 +212,9 @@ static void view_handle_container_reparent(struct wl_listener *listener,
}
static void view_execute_criteria(struct sway_view *view) {
+ if (!sway_assert(view->swayc, "cannot run criteria for unmanaged view")) {
+ return;
+ }
struct sway_seat *seat = input_manager_current_seat(input_manager);
struct sway_container *prior_workspace =
container_parent(view->swayc, C_WORKSPACE);