From 3b719fcb18faf8b9ce21535831a370902f4b0d24 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 27 May 2008 22:18:19 +0200 Subject: [PATCH] [awesomerc] Disable sloppy focus for magnifier Signed-off-by: Julien Danjou --- awesomerc.lua.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 9960b6382..01b727818 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -181,8 +181,10 @@ end -- Hook function to exeucte when the mouse is over a client. function hook_mouseover(c) - -- Sloppy focus - c:focus_set() + -- Sloppy focus, but disabled for magnifier layout + if awful.layout.get(c:screen_get()) ~= "magnifier" then + c:focus_set() + end end -- Hook function to execute when a new client appears.