Fix assign to workspace

This commit is contained in:
Ryan Dwyer 2018-07-27 09:21:55 +10:00
parent a90f2dbde9
commit 6ceb1d33fd

View file

@ -486,7 +486,7 @@ static struct sway_container *select_workspace(struct sway_view *view) {
for (int i = 0; i < criterias->length; ++i) {
struct criteria *criteria = criterias->items[i];
if (criteria->type == CT_ASSIGN_WORKSPACE) {
struct sway_container *ws = workspace_by_name(criteria->target);
ws = workspace_by_name(criteria->target);
if (!ws) {
ws = workspace_create(NULL, criteria->target);
}