mirror of
https://github.com/swaywm/sway.git
synced 2025-01-09 09:31:11 +00:00
style
This commit is contained in:
parent
de5196dc1e
commit
b05317c3a6
|
@ -406,14 +406,19 @@ swayc_t *swayc_active_workspace_for(swayc_t *cont) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
switch (cont->type) {
|
switch (cont->type) {
|
||||||
/* set root -> output */
|
case C_ROOT:
|
||||||
case C_ROOT: cont = cont->focused;
|
cont = cont->focused;
|
||||||
/* set output -> workspace */
|
/* Fallthrough */
|
||||||
case C_OUTPUT: cont = cont->focused;
|
|
||||||
/* return workspace */
|
case C_OUTPUT:
|
||||||
case C_WORKSPACE: return cont;
|
cont = cont->focused;
|
||||||
/* Find parent workspace */
|
/* Fallthrough */
|
||||||
default: return swayc_parent_by_type(cont, C_WORKSPACE);
|
|
||||||
|
case C_WORKSPACE:
|
||||||
|
return cont;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return swayc_parent_by_type(cont, C_WORKSPACE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue