mirror of
https://github.com/swaywm/sway
synced 2024-11-18 19:03:59 +01:00
Fix assign to workspace
This commit is contained in:
parent
a90f2dbde9
commit
6ceb1d33fd
@ -486,7 +486,7 @@ static struct sway_container *select_workspace(struct sway_view *view) {
|
|||||||
for (int i = 0; i < criterias->length; ++i) {
|
for (int i = 0; i < criterias->length; ++i) {
|
||||||
struct criteria *criteria = criterias->items[i];
|
struct criteria *criteria = criterias->items[i];
|
||||||
if (criteria->type == CT_ASSIGN_WORKSPACE) {
|
if (criteria->type == CT_ASSIGN_WORKSPACE) {
|
||||||
struct sway_container *ws = workspace_by_name(criteria->target);
|
ws = workspace_by_name(criteria->target);
|
||||||
if (!ws) {
|
if (!ws) {
|
||||||
ws = workspace_create(NULL, criteria->target);
|
ws = workspace_create(NULL, criteria->target);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user