From 30a74889366baf4b98bb3d398042508fe07a9906 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 24 Apr 2018 20:06:35 +1000 Subject: [PATCH] Add assert to view_execute_criteria() --- sway/tree/view.c | 3 +++ 1 file changed, 3 insertions(+) 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);