aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/main.c b/main.c
index 902ac8f..8535738 100644
--- a/main.c
+++ b/main.c
@@ -205,12 +205,10 @@ rmb(Mousectl *mc, Keyboardctl *kc)
}
idx -= NITEMS;
- if(idx >= 0){
- l = curcanvas->layers.next;
- while(l != &curcanvas->layers && idx--)
- l = l->next;
- curcanvas->curlayer = l;
- }
+ l = curcanvas->layers.next;
+ while(l != &curcanvas->layers && idx--)
+ l = l->next;
+ curcanvas->curlayer = l;
}
void