From e835f9604b1743a39d1d0746f71cf35d082ded99 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 22 May 2008 08:56:57 +0200 Subject: [PATCH] [awful] Fix tag.view{prev,next} Signed-off-by: Julien Danjou --- awesomerc.lua.in | 8 ++++---- awful.lua | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 43524cfe..938777fc 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -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", " ") -- 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) -- }}} diff --git a/awful.lua b/awful.lua index 0bd86ae6..48d10f14 100644 --- a/awful.lua +++ b/awful.lua @@ -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