mirror of
https://github.com/swaywm/sway.git
synced 2025-12-18 08:56:34 -05:00
refactored workspace_next/prev
This commit is contained in:
parent
2e755cf13f
commit
1efda79bf2
3 changed files with 34 additions and 36 deletions
3
sway/util.c
Normal file
3
sway/util.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
int wrap(int i, int max) {
|
||||
return ((i % max) + max) % max;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue