shifty: don't restore history on tag delete

This commit is contained in:
Vincent Bernat 2020-12-06 14:53:17 +01:00
parent 32b30ef618
commit 28d1ab3080

View file

@ -457,18 +457,6 @@ function del(tag)
-- remove tag
t.screen = nil
-- if the current tag is being deleted, restore from history
if t == sel and #tags > 1 then
awful.tag.history.restore(scr, 1)
-- this is supposed to cycle if history is invalid?
-- e.g. if many tags are deleted in a row
if not awful.tag.selected(scr) then
awful.tag.viewonly(tags[awful.util.cycle(#tags, idx - 1)])
end
end
-- FIXME: what is this for??
if capi.client.focus then capi.client.focus:raise() end
return true
end