touch.c: fix coding style (sx,sy) vs (nx,ny)

Prefer surface to node naming convention for coordinates
This commit is contained in:
Johan Malm 2022-03-28 21:35:59 +01:00
parent 57a937bdf2
commit a188526859
2 changed files with 17 additions and 8 deletions

View file

@ -12,6 +12,15 @@ cursor: add special feature
And please wrap the main commit message at max 74 characters, otherwise `git log` and similar look so weird.
## Naming Convention
There are three types of coordinate systems: surface, output and layout - for
which the variables (sx, sy), (ox, oy) and (lx, ly) are used respectively in
line with wlroots.
With the introduction of the scene-graph API, some wlroots functions also use
node coordinates (nx, ny) but we prefer (sx, sy) where possible.
[coding style]: https://git.sr.ht/~sircmpwn/cstyle
[commit messages]: https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/CONTRIBUTING.md#commit-messages
[checkpatch.pl]: https://github.com/johanmalm/checkpatch.pl