labwc/CONTRIBUTING.md
Johan Malm a188526859 touch.c: fix coding style (sx,sy) vs (nx,ny)
Prefer surface to node naming convention for coordinates
2022-03-28 21:35:59 +01:00

956 B

How to Contribute

Let's try to stick to sircmpwn's coding style

If you're not used to it, you can use checkpatch.pl to run a few simple formatting checks.

Write commit messages like so, keeping the top line to this sort of syntax:

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.