layout.arrange: fix screen arg in call to tag.getgap

Fixes https://github.com/awesomeWM/awesome/pull/568#issuecomment-158682756.
This commit is contained in:
Daniel Hahler 2015-11-22 00:30:18 +01:00
parent 8557a7e0e4
commit 58bd21ad79
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ function layout.arrange(screen)
local p = {}
p.workarea = capi.screen[screen].workarea
local useless_gap = tag.getgap(tag.selected(screen), #client.tiled(s))
local useless_gap = tag.getgap(tag.selected(screen),
#client.tiled(screen))
-- Handle padding
local padding = ascreen.padding(capi.screen[screen]) or {}
p.workarea.x = p.workarea.x + (padding.left or 0) + useless_gap