From 8e1f9908c975d8bfb265aa3620c02bf4983ae447 Mon Sep 17 00:00:00 2001 From: Mats Rauhala Date: Fri, 23 Aug 2019 13:05:58 +0300 Subject: [PATCH] Focus follows mouse --- src/XMonad/Config/MasseR.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/XMonad/Config/MasseR.hs b/src/XMonad/Config/MasseR.hs index d6e19f5..b72b8e2 100644 --- a/src/XMonad/Config/MasseR.hs +++ b/src/XMonad/Config/MasseR.hs @@ -49,6 +49,7 @@ import XMonad.Util.SpawnOnce import System.IO (hClose, hPutStr) import XMonad.Actions.Navigation2D +import XMonad.Actions.UpdatePointer (updatePointer) import XMonad.Util.NamedActions import XMonad.Util.Run (spawnPipe) @@ -241,7 +242,8 @@ masser extraConfig = xmonad =<< statusBar (bar extraConfig) zenburnPP toggleStru , normalBorderColor = "#262626" , focusedBorderColor = "#7F9F7F" , manageHook = myManageHook - , focusFollowsMouse = False + , focusFollowsMouse = True + , logHook = updatePointer (0.25, 0.25) (0.25, 0.25) } myLayout = toggleLayouts zoom workspaceLayouts where