mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-19 18:34:31 +02:00
shifty: don't restore history on tag delete
This commit is contained in:
parent
32b30ef618
commit
28d1ab3080
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue