mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Add assert to view_execute_criteria()
This commit is contained in:
parent
72767e1cc3
commit
30a7488936
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue