tag.lua: fix new client screen

Prevent from blinking the first screen in multiheads by using
the mouse-focused screen tag list for a new client instead of
screen 1.

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Sébastien Gross 2009-09-04 10:40:36 +02:00 committed by Julien Danjou
parent ae6d09edc1
commit 4a7dba0198
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ function withcurrent(c, startup)
c:tags(c.transient_for:tags())
end
if #c:tags() == 0 then
c:tags(selectedlist(c.screen))
c:tags(selectedlist(capi.mouse.screen))
end
end
end