fix transition from named to numbered workspace
This commit is contained in:
parent
930733f352
commit
e35aff5cb9
|
@ -525,7 +525,7 @@ Con *workspace_next(void) {
|
||||||
continue;
|
continue;
|
||||||
if (!first)
|
if (!first)
|
||||||
first = child;
|
first = child;
|
||||||
if (!first_opposite && child->num != -1)
|
if (!first_opposite || (child->num != -1 && child->num < first_opposite->num))
|
||||||
first_opposite = child;
|
first_opposite = child;
|
||||||
if (child == current) {
|
if (child == current) {
|
||||||
found_current = true;
|
found_current = true;
|
||||||
|
@ -590,7 +590,7 @@ Con *workspace_prev(void) {
|
||||||
continue;
|
continue;
|
||||||
if (!last)
|
if (!last)
|
||||||
last = child;
|
last = child;
|
||||||
if (!first_opposite && child->num != -1)
|
if (!first_opposite || (child->num != -1 && child->num > first_opposite->num))
|
||||||
first_opposite = child;
|
first_opposite = child;
|
||||||
if (child == current) {
|
if (child == current) {
|
||||||
found_current = true;
|
found_current = true;
|
||||||
|
|
Loading…
Reference in New Issue