Browse Source

Set awesomewm awful screen focus when moving mouse

Andrew Swistak 8 years ago
parent
commit
f2eaf8c780
1 changed files with 2 additions and 0 deletions
  1. 2 0
      config/awesome/rc.lua

+ 2 - 0
config/awesome/rc.lua

@@ -379,6 +379,7 @@ awful.rules.rules = {
       raise = true,
       keys = clientkeys,
       buttons = clientbuttons,
+      screen = awful.screen.focused,
       size_hints_honor = false
   }},
   { rule = { class = "Pidgin", role = "buddy_list" },
@@ -409,6 +410,7 @@ awful.rules.rules = {
 -- Signal functionto execute when a new client appears.
 client.connect_signal("manage", function(c, startup)
   -- Enable sloppy focus
+  awful.client.movetoscreen(c, mouse.screen)
   c:connect_signal("mouse::enter", function(c)
     if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
       and awful.client.focus.filter(c) then