xmonad-contrib-bluetilebranch-0.8.1: Third party extensions for xmonadSource codeContentsIndex
XMonad.Actions.UpdateFocus
Portabilityunportable
Stabilityunstable
MaintainerDaniel Schoepe <asgaroth_@gmx.de>
Contents
Usage
Description
Updates the focus on mouse move in unfocused windows.
Synopsis
focusOnMouseMove :: Event -> X All
adjustEventInput :: X ()
Usage

To make the focus update on mouse movement within an unfocused window, add the following to your ~/.xmonad/xmonad.hs:

 import XMonad.Actions.UpdateFocus
 xmonad $ defaultConfig {
   ..
   startupHook = adjustEventInput
   handleEventHook = focusOnMouseMove
   ..
 }

This module is probably only useful when focusFollowsMouse is set to True(default).

focusOnMouseMove :: Event -> X AllSource
Changes the focus if the mouse is moved within an unfocused window.
adjustEventInput :: X ()Source
Adjusts the event mask to pick up pointer movements.
Produced by Haddock version 2.4.2