From: martin f. krafft Date: Tue, 27 Feb 2018 03:14:48 +0000 (+1300) Subject: only move mouse pointer if target client will be visible/raised/focused X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/04fad5c8f1bcfd5beb3dc04cd0611f269414c753 only move mouse pointer if target client will be visible/raised/focused --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index f101cdc..aab31dd 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -1138,10 +1138,10 @@ client.connect_signal("request::activate", function(c, context, hints) }, context) then gears.timer.delayed_call(function() -- we need a delayed call so that we execute *after layout changes - centre_mouse_on_area(client.focus) + if hints.raise and c == client.focus and client.focus:isvisible() then + move_mouse_to_area(client.focus) + end end) - else - dbg.dump(c, context, hints) end end)