Fix awful.tag.add ignoring props.index (#1245)
This commit is contained in:
parent
1d5f70e40d
commit
4cb11b8754
|
@ -209,7 +209,7 @@ function tag.add(name, props)
|
||||||
-- signal is sent
|
-- signal is sent
|
||||||
properties.screen = get_screen(properties.screen or ascreen.focused())
|
properties.screen = get_screen(properties.screen or ascreen.focused())
|
||||||
-- Index is also required
|
-- 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 }
|
local newtag = capi.tag{ name = name }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue