From b16f62862019b7d51711ff31384c173d07f89eda Mon Sep 17 00:00:00 2001 From: David Kosorin Date: Fri, 30 Sep 2022 08:12:13 +0200 Subject: [PATCH] Restore minimized sticky clients (#3709) --- lib/awful/client.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index b1d5478b5..d44f1d827 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -1132,8 +1132,12 @@ function client.restore(s) local cls = capi.client.get(s) local tags = s.selected_tags for _, c in pairs(cls) do - local ctags = c:tags() if c.minimized then + if c.sticky then + c.minimized = false + return c + end + local ctags = c:tags() for _, t in ipairs(tags) do if gtable.hasitem(ctags, t) then c.minimized = false