awful.tag: filter out window before switching screens (FS#633)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-09-22 16:09:44 +02:00
parent 9388dc5a1e
commit 7c5ba1fcef
1 changed files with 7 additions and 1 deletions

View File

@ -346,7 +346,13 @@ end
-- Register standards signals
capi.client.add_signal("manage", function(c, startup)
if not startup then
-- If we are not managing this application at startup,
-- move it to the screen where the mouse is.
-- We only do it for "normal" windows (i.e. no dock, etc).
if not startup
and c.type ~= "desktop"
and c.type ~= "dock"
and c.type ~= "splash" then
if c.transient_for then
c.screen = c.transient_for.screen
if not c.sticky then