fix transition from named to numbered workspace

next
Benedikt Heine 2016-07-31 19:50:01 +02:00
parent 930733f352
commit e35aff5cb9
1 changed files with 2 additions and 2 deletions

View File

@ -525,7 +525,7 @@ Con *workspace_next(void) {
continue;
if (!first)
first = child;
if (!first_opposite && child->num != -1)
if (!first_opposite || (child->num != -1 && child->num < first_opposite->num))
first_opposite = child;
if (child == current) {
found_current = true;
@ -590,7 +590,7 @@ Con *workspace_prev(void) {
continue;
if (!last)
last = child;
if (!first_opposite && child->num != -1)
if (!first_opposite || (child->num != -1 && child->num > first_opposite->num))
first_opposite = child;
if (child == current) {
found_current = true;