wild-bind-x11-0.2.0.13: X11-specific implementation for WildBind
MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

WildBind.X11.Internal.Window

Description

This is an internal module. Package users should not rely on this.

Synopsis

The Window data type

data Window Source #

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.

Instances

Instances details
Eq Window Source # 
Instance details

Defined in WildBind.X11.Internal.Window

Methods

(==) :: Window -> Window -> Bool #

(/=) :: Window -> Window -> Bool #

Ord Window Source # 
Instance details

Defined in WildBind.X11.Internal.Window

Show Window Source # 
Instance details

Defined in WildBind.X11.Internal.Window

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.

fromWinID :: Window -> Window Source #

Create Window from X11's Window. Only for testing.

Since: 0.2.0.0

Accessor functions for Window

winInstance :: Window -> Text Source #

name of the application instance (part of WM_CLASS property)

winClass :: Window -> Text Source #

name of the application class (part of WM_CLASS property)

winName :: Window -> Text Source #

what's shown in the title bar

project-internal accessor

winID :: Window -> Window Source #

X11 window ID.

Since: 0.2.0.0

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