|
|
|
@ -708,6 +708,11 @@ void workspace_for_each_container(struct sway_workspace *ws,
|
|
|
|
|
struct sway_container *workspace_find_container(struct sway_workspace *ws,
|
|
|
|
|
bool (*test)(struct sway_container *con, void *data), void *data) {
|
|
|
|
|
struct sway_container *result = NULL;
|
|
|
|
|
if (ws == NULL){
|
|
|
|
|
sway_log(SWAY_ERROR, "Cannot find container with no workspace.");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Tiling
|
|
|
|
|
for (int i = 0; i < ws->tiling->length; ++i) {
|
|
|
|
|
struct sway_container *child = ws->tiling->items[i];
|
|
|
|
|