소스 검색

Set awesomewm awful screen focus when moving mouse

Andrew Swistak 8 년 전
부모
커밋
f2eaf8c780
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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