diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-25 16:12:37 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-25 16:12:37 -0400 |
commit | fa6292ff24082f90886353844b45e99ec965daa5 (patch) | |
tree | 06f9219532f6f057410910dbfe43d3884acd90bc /sway/util.c | |
parent | 2e755cf13fb653a397a8895121184322dc1dcdd6 (diff) | |
parent | 95353051379126f99d310936a46052b4a89bd880 (diff) |
Merge pull request #129 from minus7/workspaces
Implemented "move container to workspace"
Diffstat (limited to 'sway/util.c')
-rw-r--r-- | sway/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/util.c b/sway/util.c new file mode 100644 index 00000000..9a59ddf9 --- /dev/null +++ b/sway/util.c @@ -0,0 +1,5 @@ +#include "util.h" + +int wrap(int i, int max) { + return ((i % max) + max) % max; +} |