mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
Fix assign to workspace
This commit is contained in:
parent
a90f2dbde9
commit
6ceb1d33fd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue