Merge pull request #409 from seregaxvm/gap

add screen and tag arguments to useless_gaps_resize function
This commit is contained in:
Luca CPZ 2018-11-14 20:07:50 +00:00 committed by GitHub
commit 448d0b1be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,9 +158,10 @@ end
-- }}} -- }}}
-- On the fly useless gaps change -- On the fly useless gaps change
function util.useless_gaps_resize(thatmuch) function util.useless_gaps_resize(thatmuch, s, t)
local scr = awful.screen.focused() local scr = s or awful.screen.focused()
scr.selected_tag.gap = scr.selected_tag.gap + tonumber(thatmuch) local tag = t or scr.selected_tag
tag.gap = tag.gap + tonumber(thatmuch)
awful.layout.arrange(scr) awful.layout.arrange(scr)
end end