awful.tag.withcurrent: Also act on restarts (FS#1155)
commit4abf42b92f0f4b7676da4952dde86b0fce055240
authorUli Schlachter <psychon@znc.in>
Tue, 8 Oct 2013 08:45:22 +0000 (8 10:45 +0200)
committerUli Schlachter <psychon@znc.in>
Tue, 8 Oct 2013 08:45:22 +0000 (8 10:45 +0200)
tree87611106387452e2434899c9c84432225a821028
parentefd243b6d70b9c549c184c3c0b84c481453411e0
awful.tag.withcurrent: Also act on restarts (FS#1155)

When awesome restarts because a new screen was added or removed, clients can end
up being on a different screen than before the restart. However, the tags will
be carried across the restart. This means that a client could end up being
tagged with a tag from another screen. This results in weird behavior of tag
switches and confuses users.

To work around this, remove the client from any tags that are on a different
screen during startup. If the client ends up without any tags, it will then be
tagged with the currently selected tags.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/awful/tag.lua.in