refactored workspace_next/prev

This commit is contained in:
minus 2015-08-25 15:17:18 +02:00
parent 2e755cf13f
commit 1efda79bf2
3 changed files with 34 additions and 36 deletions

3
sway/util.c Normal file
View file

@ -0,0 +1,3 @@
int wrap(int i, int max) {
return ((i % max) + max) % max;
}