sway-patched-tray-menu/sway/util.c

4 lines
62 B
C
Raw Normal View History

2015-08-25 15:17:18 +02:00
int wrap(int i, int max) {
return ((i % max) + max) % max;
}