xmonad-contrib-0.14: Third party extensions for xmonad

Copyright(c) Daniel Schoepe
LicenseBSD3-style (see LICENSE)
MaintainerDaniel Schoepe <asgaroth_@gmx.de>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell98

XMonad.Actions.UpdateFocus

Contents

Description

Updates the focus on mouse move in unfocused windows.

Synopsis

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 $ def {
  ..
  startupHook = adjustEventInput
  handleEventHook = focusOnMouseMove
  ..
}

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

focusOnMouseMove :: Event -> X All Source #

Changes the focus if the mouse is moved within an unfocused window.

adjustEventInput :: X () Source #

Adjusts the event mask to pick up pointer movements.