diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index 8ff168bd..fc1b1e60 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -395,7 +395,9 @@ function tag.history.restore(screen, idx) tag.viewnone(s) -- select tags from the history entry for _, t in ipairs(data.history[s][i]) do - t.selected = true + if t.activated and t.screen then + t.selected = true + end end -- update currently selected tags table data.history[s].current = data.history[s][i]