From f3f0e7a47cbaa1542e80789267452704004fe296 Mon Sep 17 00:00:00 2001 From: Evan Black Date: Tue, 24 Nov 2015 02:28:27 -0600 Subject: [PATCH] Spawn clients under mouse's screen --- rc.lua.evancolor | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc.lua.evancolor b/rc.lua.evancolor index b82b8fd..a37ea08 100644 --- a/rc.lua.evancolor +++ b/rc.lua.evancolor @@ -674,6 +674,9 @@ awful.rules.rules = { -- signal function to execute when a new client appears. local sloppyfocus_last = {c=nil} client.connect_signal("manage", function (c, startup) + local tag = awful.tag.gettags(mouse.screen)[awful.tag.getidx(c:tags()[1])] + awful.client.movetoscreen(c, mouse.screen) + awful.client.movetotag(tag, c) -- Enable sloppy focus client.connect_signal("mouse::enter", function(c) if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier