From 5995a7f4b1850c66f9f7848c62c9e120b2079d87 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Nov 2022 20:05:38 +0100 Subject: [PATCH] tabbar: Fixed tabbar_disable var (#184) --- module/tabbed.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/module/tabbed.lua b/module/tabbed.lua index c53ec03..1894303 100644 --- a/module/tabbed.lua +++ b/module/tabbed.lua @@ -242,13 +242,15 @@ tabbed.update_tabbar = function(tabobj) flexlist:add(wid_temp) end -- add tabbar to each tabbed client (clients will be hided anyway) - for _, c in ipairs(tabobj.clients) do - local titlebar = awful.titlebar(c, { - bg = bar.bg_normal, - size = bar.size, - position = bar.position, - }) - titlebar:setup({ layout = wibox.layout.flex.horizontal, flexlist }) + if not beautiful.tabbar_disable then + for _, c in ipairs(tabobj.clients) do + local titlebar = awful.titlebar(c, { + bg = bar.bg_normal, + size = bar.size, + position = bar.position, + }) + titlebar:setup({ layout = wibox.layout.flex.horizontal, flexlist }) + end end end