mirror of
https://github.com/labwc/labwc.git
synced 2026-02-21 01:40:26 -05:00
touch.c: fix coding style (sx,sy) vs (nx,ny)
Prefer surface to node naming convention for coordinates
This commit is contained in:
parent
57a937bdf2
commit
a188526859
2 changed files with 17 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue