[awful] Fix tag.view{prev,next}
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
65cdf2d536
commit
e835f9604b
|
@ -41,8 +41,8 @@ mytaglist:mouse({}, 3,
|
||||||
tag:view(not tag:isselected())
|
tag:view(not tag:isselected())
|
||||||
end)
|
end)
|
||||||
mytaglist:mouse({ modkey }, 3, awful.client.toggletag)
|
mytaglist:mouse({ modkey }, 3, awful.client.toggletag)
|
||||||
mytaglist:mouse({ }, 4, awful.tag.viewprev)
|
mytaglist:mouse({ }, 4, awful.tag.viewnext)
|
||||||
mytaglist:mouse({ }, 5, awful.tag.viewnext)
|
mytaglist:mouse({ }, 5, awful.tag.viewprev)
|
||||||
mytaglist:set("text_focus", "<bg color=\"#555555\"/> <title/> ")
|
mytaglist:set("text_focus", "<bg color=\"#555555\"/> <title/> ")
|
||||||
|
|
||||||
-- Create a tasklist widget
|
-- Create a tasklist widget
|
||||||
|
@ -75,8 +75,8 @@ end
|
||||||
|
|
||||||
-- {{{ Mouse bindings
|
-- {{{ Mouse bindings
|
||||||
awesome.mouse({ }, 3, function () awful.spawn(terminal) end)
|
awesome.mouse({ }, 3, function () awful.spawn(terminal) end)
|
||||||
awesome.mouse({ }, 4, awful.tag.viewprev)
|
awesome.mouse({ }, 4, awful.tag.viewnext)
|
||||||
awesome.mouse({ }, 5, awful.tag.viewnext)
|
awesome.mouse({ }, 5, awful.tag.viewprev)
|
||||||
client.mouse({ modkey }, 1, mouse.client_move)
|
client.mouse({ modkey }, 1, mouse.client_move)
|
||||||
client.mouse({ modkey }, 3, mouse.client_resize)
|
client.mouse({ modkey }, 3, mouse.client_resize)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
|
@ -149,7 +149,7 @@ function tag_viewidx(r)
|
||||||
tag_viewnone()
|
tag_viewnone()
|
||||||
for i, t in ipairs(tags) do
|
for i, t in ipairs(tags) do
|
||||||
if t == sel then
|
if t == sel then
|
||||||
tags[array_boundandcycle(tags, i - r)]:view(true)
|
tags[array_boundandcycle(tags, i + r)]:view(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue