Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This is an internal module. Package users should not rely on this.
Synopsis
- data Window
- type ActiveWindow = Window
- emptyWindow :: Window
- fromWinID :: Window -> Window
- winInstance :: Window -> Text
- winClass :: Window -> Text
- winName :: Window -> Text
- winID :: Window -> Window
- getActiveWindow :: Display -> IO ActiveWindow
- defaultRootWindowForDisplay :: Display -> Window
The Window
data type
Information about window. You can inspect properties winInstance
and winClass
by wmctrl
command.
$ wmctrl -lx 0x01400004 -1 xfce4-panel.Xfce4-panel mydesktop xfce4-panel 0x01800003 -1 xfdesktop.Xfdesktop mydesktop desktop 0x03800004 0 xfce4-terminal.Xfce4-terminal mydesktop Terminal - toshio@mydesktop - byobu 0x03a000a7 0 emacs.Emacs23 mydesktop emacs@mydesktop 0x03e010fc 0 Navigator.Firefox mydesktop debug-ito (Toshio Ito) - Mozilla Firefox 0x02600003 0 totem.Totem mydesktop Movie Player
In the above example, the third column shows winInstance.winClass
.
type ActiveWindow = Window Source #
Use this type especially when the Window
is active.
emptyWindow :: Window Source #
An empty Window instance used for fallback and/or default value.
Accessor functions for Window
winInstance :: Window -> Text Source #
name of the application instance (part of WM_CLASS
property)
project-internal accessor
Functions
getActiveWindow :: Display -> IO ActiveWindow Source #
Get currently active Window
.
defaultRootWindowForDisplay :: Display -> Window Source #
Get the default root window of the display.
Since: 0.2.0.0