From: Josh Timmer <0ohexxo0@gmail.com> Date: Thu, 17 Sep 2015 19:32:55 +0000 (-0400) Subject: Removed rounding from position correction in uselesstile X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/ea618041941e4107dd14af7103e87912305615a9?ds=sidebyside Removed rounding from position correction in uselesstile --- diff --git a/layout/uselesstile.lua b/layout/uselesstile.lua index c769d58..ee33060 100644 --- a/layout/uselesstile.lua +++ b/layout/uselesstile.lua @@ -55,8 +55,8 @@ end local function size_correction(c, geometry, useless_gap) geometry.width = math.max(geometry.width - 2 * c.border_width - useless_gap, 1) geometry.height = math.max(geometry.height - 2 * c.border_width - useless_gap, 1) - geometry.x = math.floor(geometry.x + useless_gap / 2) - geometry.y = math.floor(geometry.y + useless_gap / 2) + geometry.x = geometry.x + useless_gap / 2 + geometry.y = geometry.y + useless_gap / 2 end -- Check size factor for group of clients and calculate total