Skip to content

Commit

Permalink
Restore minimized sticky clients (#3709)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosorin committed Sep 30, 2022
1 parent 4a140ea commit b16f628
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/awful/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b16f628

Please sign in to comment.