Invert rulers insertion order.

Rulers insertion order impact the result of the bubble sort algorithm.
By inverting the order, we can make the output image looking more natural.

Awesome's screen properties can be seen like this:
* The screen has a geometry (its size) ;
* Inside there is the workarea ;
* Inside there is the tiling_area.

It seems better to draw rulers in this order.
This commit is contained in:
Aire-One 2019-11-16 19:51:50 +01:00
parent ee331a4eff
commit 3830e9de35
1 changed files with 4 additions and 4 deletions

View File

@ -293,14 +293,14 @@ end
for _=1, screen.count() do
local s = screen[1]
-- The outer geometry.
compute_ruler(s, s.geometry, "geometry")
-- The padding.
compute_ruler(s, s.tiling_area, "tiling_area")
-- The workarea.
compute_ruler(s, s.workarea, "workarea")
-- The padding.
compute_ruler(s, s.tiling_area, "tiling_area")
-- The outer geometry.
compute_ruler(s, s.geometry, "geometry")
end
-- Get the final size of the image.