awful.tag.move: Fix tag index setting (FS#1249)

Since commit 9c69e857ed, awful.tag.setscreen() unsets a tag's index to make
sure things end up in a sane order on the new screen. Thus, the call to
setscreen() removed the "index" property that tag.move just set.

Fix this by setting the index after the screen.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2014-04-09 22:02:14 +02:00
parent 96c49e6c6a
commit 27f483a601
1 changed files with 1 additions and 1 deletions

View File

@ -56,8 +56,8 @@ function tag.move(new_index, target_tag)
table.insert(tmp_tags, new_index, target_tag)
for i, tmp_tag in ipairs(tmp_tags) do
tag.setproperty(tmp_tag, "index", i)
tag.setscreen(tmp_tag, scr)
tag.setproperty(tmp_tag, "index", i)
end
end