From 4cb11b8754f20ad86a7fb389d9541175f7b13f87 Mon Sep 17 00:00:00 2001 From: Michael Beaumont Date: Thu, 1 Dec 2016 22:04:57 +0100 Subject: [PATCH] Fix awful.tag.add ignoring props.index (#1245) --- lib/awful/tag.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index 42d5a2d87..05da7c16c 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -209,7 +209,7 @@ function tag.add(name, props) -- signal is sent properties.screen = get_screen(properties.screen or ascreen.focused()) -- Index is also required - properties.index = #raw_tags(properties.screen)+1 + properties.index = properties.index or #raw_tags(properties.screen)+1 local newtag = capi.tag{ name = name }