From 3830e9de352b70561448444e32e677830b23dcda Mon Sep 17 00:00:00 2001 From: Aire-One Date: Sat, 16 Nov 2019 19:51:50 +0100 Subject: [PATCH] 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. --- tests/examples/screen/template.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/examples/screen/template.lua b/tests/examples/screen/template.lua index 761e4d6f5..950042e92 100644 --- a/tests/examples/screen/template.lua +++ b/tests/examples/screen/template.lua @@ -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.