From 04fad5c8f1bcfd5beb3dc04cd0611f269414c753 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 27 Feb 2018 16:14:48 +1300 Subject: [PATCH] only move mouse pointer if target client will be visible/raised/focused --- .config/awesome/rc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.5