X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/555b872d16393774089df3b3453000571a73a3dd..a0da152bb39c5c3ae239a5743c40cb35038c4a21:/util/init.lua diff --git a/util/init.lua b/util/init.lua index 25470e4..9c4dc06 100644 --- a/util/init.lua +++ b/util/init.lua @@ -141,11 +141,10 @@ end -- pos in {-1, 1} <-> {previous, next} tag position function util.move_tag(pos) local tag = awful.screen.focused().selected_tag - local idx = awful.tag.getidx(tag) if tonumber(pos) <= -1 then - awful.tag.move(idx - 1, tag) + awful.tag.move(tag.index - 1, tag) else - awful.tag.move(idx + 1, tag) + awful.tag.move(tag.index + 1, tag) end end