sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit e533014201475648df24c1c74dbf04de65a9d16c
parent e854a54e9631c405b26c08cf0f5d085a1b5949e6
Author: minus <minus@mnus.de>
Date:   Tue, 25 Aug 2015 19:53:59 +0200

added missing util.h/c stuff

Diffstat:
Minclude/util.h | 5+++++
Msway/util.c | 2++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/util.h b/include/util.h @@ -1,4 +1,9 @@ +#ifndef _SWAY_UTIL_H +#define _SWAY_UTIL_H + /** * Wrap i into the range [0, max[ */ int wrap(int i, int max); + +#endif diff --git a/sway/util.c b/sway/util.c @@ -1,3 +1,5 @@ +#include "util.h" + int wrap(int i, int max) { return ((i % max) + max) % max; }