From 28d1ab308058e0ab398e915de292a2d9e967dd23 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 6 Dec 2020 14:53:17 +0100 Subject: [PATCH] shifty: don't restore history on tag delete --- lib/shifty.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/shifty.lua b/lib/shifty.lua index a5103fe..9007929 100644 --- a/lib/shifty.lua +++ b/lib/shifty.lua @@ -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