From c32096a31136de7bf95d5f3421410519757991b2 Mon Sep 17 00:00:00 2001 From: Jagannathan Tiruvallur Eachambadi Date: Mon, 7 Aug 2017 18:35:39 +0000 Subject: [PATCH] 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. --- objects/tag.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/objects/tag.c b/objects/tag.c index 8013ad1a..ed0ad2c9 100644 --- a/objects/tag.c +++ b/objects/tag.c @@ -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