Corrected selected check in awful.tag.set_screen()

Previously it would check if the awful.tag.selected function existed,
and not whether the tag was actually selected.
This commit is contained in:
Drauthius 2017-02-25 16:07:36 +01:00
parent 052cda939b
commit 28709c282e
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ end
function tag.object.set_screen(t, s)
s = get_screen(s or ascreen.focused())
local sel = tag.selected
local sel = t.selected
local old_screen = get_screen(tag.getproperty(t, "screen"))
if s == old_screen then return end