diff options
-rw-r--r-- | sway/tree/view.c | 3 |
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, | |||
212 | } | 212 | } |
213 | 213 | ||
214 | static void view_execute_criteria(struct sway_view *view) { | 214 | static void view_execute_criteria(struct sway_view *view) { |
215 | if (!sway_assert(view->swayc, "cannot run criteria for unmanaged view")) { | ||
216 | return; | ||
217 | } | ||
215 | struct sway_seat *seat = input_manager_current_seat(input_manager); | 218 | struct sway_seat *seat = input_manager_current_seat(input_manager); |
216 | struct sway_container *prior_workspace = | 219 | struct sway_container *prior_workspace = |
217 | container_parent(view->swayc, C_WORKSPACE); | 220 | container_parent(view->swayc, C_WORKSPACE); |