tags: specify layout in add_tag doc snippet (#1950)

Adding a tag without layout causes errors while using the tag. For
example resizing with mouse causes indexing a null error.
This commit is contained in:
Jagannathan Tiruvallur Eachambadi 2017-08-07 18:35:39 +00:00 committed by Emmanuel Lepage Vallée
parent 05bd54bbb7
commit c32096a311
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@
* Create a new tag at the end of the list
*
* local function add_tag()
* awful.tag.add("NewTag",{screen= awful.screen.focused() }):view_only()
* awful.tag.add("NewTag", {
* screen = awful.screen.focused(),
* layout = awful.layout.suit.floating }):view_only()
* end
*
* Rename the current tag