[awful] Fix tag.view{prev,next}

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-22 08:56:57 +02:00
parent 65cdf2d536
commit e835f9604b
2 changed files with 5 additions and 5 deletions

View File

@ -41,8 +41,8 @@ mytaglist:mouse({}, 3,
tag:view(not tag:isselected())
end)
mytaglist:mouse({ modkey }, 3, awful.client.toggletag)
mytaglist:mouse({ }, 4, awful.tag.viewprev)
mytaglist:mouse({ }, 5, awful.tag.viewnext)
mytaglist:mouse({ }, 4, awful.tag.viewnext)
mytaglist:mouse({ }, 5, awful.tag.viewprev)
mytaglist:set("text_focus", "<bg color=\"#555555\"/> <title/> ")
-- Create a tasklist widget
@ -75,8 +75,8 @@ end
-- {{{ Mouse bindings
awesome.mouse({ }, 3, function () awful.spawn(terminal) end)
awesome.mouse({ }, 4, awful.tag.viewprev)
awesome.mouse({ }, 5, awful.tag.viewnext)
awesome.mouse({ }, 4, awful.tag.viewnext)
awesome.mouse({ }, 5, awful.tag.viewprev)
client.mouse({ modkey }, 1, mouse.client_move)
client.mouse({ modkey }, 3, mouse.client_resize)
-- }}}

View File

@ -149,7 +149,7 @@ function tag_viewidx(r)
tag_viewnone()
for i, t in ipairs(tags) do
if t == sel then
tags[array_boundandcycle(tags, i - r)]:view(true)
tags[array_boundandcycle(tags, i + r)]:view(true)
end
end
end