awful.tag: make viewonly more smart (FS#634)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
f347876af4
commit
743603d24d
|
@ -252,8 +252,10 @@ end
|
||||||
--- View only a tag.
|
--- View only a tag.
|
||||||
-- @param t The tag object.
|
-- @param t The tag object.
|
||||||
function viewonly(t)
|
function viewonly(t)
|
||||||
viewnone(t.screen)
|
local tags = capi.screen[screen or capi.mouse.screen]:tags()
|
||||||
t.selected = true
|
for _, tag in pairs(tags) do
|
||||||
|
tag.selected = (t == tag)
|
||||||
|
end
|
||||||
capi.screen[t.screen]:emit_signal("tag::history::update")
|
capi.screen[t.screen]:emit_signal("tag::history::update")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue