From 7c5ba1fcefe29d1779e9516f8163430070833f10 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 22 Sep 2009 16:09:44 +0200 Subject: [PATCH] awful.tag: filter out window before switching screens (FS#633) Signed-off-by: Julien Danjou --- lib/awful/tag.lua.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 459a5b78..9e0ba6d8 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -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