Add assert to view_execute_criteria()

This commit is contained in:
Ryan Dwyer 2018-04-24 20:06:35 +10:00
parent 72767e1cc3
commit 30a7488936

View File

@ -212,6 +212,9 @@ static void view_handle_container_reparent(struct wl_listener *listener,
} }
static void view_execute_criteria(struct sway_view *view) { 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_seat *seat = input_manager_current_seat(input_manager);
struct sway_container *prior_workspace = struct sway_container *prior_workspace =
container_parent(view->swayc, C_WORKSPACE); container_parent(view->swayc, C_WORKSPACE);