From 26599c5961d2e9b93cf4b8f16da88ab72d0b8d49 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 19 Apr 2021 08:48:59 +0200 Subject: [PATCH] widgets: don't minimize using the task list I have ever used that only by mistake. --- rc/widgets.lua | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/rc/widgets.lua b/rc/widgets.lua index 768cbde..3e3d885 100644 --- a/rc/widgets.lua +++ b/rc/widgets.lua @@ -244,18 +244,14 @@ local taglist = {} local tasklist = {} tasklist.buttons = awful.util.table.join( awful.button({ }, 1, function (c) - if c == client.focus then - c.minimized = true - else - if not c:isvisible() then - awful.tag.viewonly(c:tags()[1]) - end - -- This will also un-minimize - -- the client, if needed - client.focus = c - c:raise() - end - end)) + if not c:isvisible() then + awful.tag.viewonly(c:tags()[1]) + end + -- This will also un-minimize + -- the client, if needed + client.focus = c + c:raise() +end)) for s = 1, screen.count() do promptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })