Restore minimized sticky clients (#3709)

This commit is contained in:
David Kosorin 2022-09-30 08:12:13 +02:00 committed by GitHub
parent 4a140ea5ea
commit b16f628620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1132,8 +1132,12 @@ function client.restore(s)
local cls = capi.client.get(s) local cls = capi.client.get(s)
local tags = s.selected_tags local tags = s.selected_tags
for _, c in pairs(cls) do for _, c in pairs(cls) do
local ctags = c:tags()
if c.minimized then if c.minimized then
if c.sticky then
c.minimized = false
return c
end
local ctags = c:tags()
for _, t in ipairs(tags) do for _, t in ipairs(tags) do
if gtable.hasitem(ctags, t) then if gtable.hasitem(ctags, t) then
c.minimized = false c.minimized = false