Copyright | (c) Jan Vornberger 2009 |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | jan.vornberger@informatik.uni-oldenburg.de |
Stability | unstable |
Portability | not portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Various stuff that can be added to the decoration. Most of it is intended to be used by other modules. See XMonad.Layout.ButtonDecoration for a module that makes use of this.
Synopsis
- titleBarButtonHandler :: Window -> Int -> Int -> X Bool
- defaultThemeWithButtons :: Theme
- handleScreenCrossing :: Window -> Window -> X Bool
Documentation
titleBarButtonHandler :: Window -> Int -> Int -> X Bool Source #
A function intended to be plugged into the decorationCatchClicksHook
of a decoration.
It will intercept clicks on the buttons of the decoration and invoke the associated action.
To actually see the buttons, you will need to use a theme that includes them.
See defaultThemeWithButtons
below.
defaultThemeWithButtons :: Theme Source #
Intended to be used together with titleBarButtonHandler
. See above.
handleScreenCrossing :: Window -> Window -> X Bool Source #
A function intended to be plugged into the decorationAfterDraggingHook
of a decoration.
It will check if the window has been dragged onto another screen and shift it there.
The PositionStore is also updated accordingly, as this is designed to be used together
with XMonad.Layout.PositionStoreFloat.