Documentation ¶
Index ¶
- Variables
- func ActiveWindowGet(X *xgbutil.XUtil) xproto.Window
- func ClientListStackingGet(X *xgbutil.XUtil) []xproto.Window
- func Connect() *xgbutil.XUtil
- func CurrentDesktopGet(X *xgbutil.XUtil) uint
- func DesktopDimensions(screenNum uint) (x, y, w, h int)
- func GetScreenNum(w xproto.Window) uint
- func InitRoot()
- func IsIgnored(info *Info) bool
- func IsMaximized(w xproto.Window) bool
- func IsSpecial(info *Info) bool
- func OnPointerUpdate(fun func(uint16))
- func OnStateUpdate(fun func(string))
- func PhysicalHeadsGet(rGeom xrect.Rect) xinerama.Heads
- func PointerGet(X *xgbutil.XUtil) *common.Pointer
- func PointerUpdate(X *xgbutil.XUtil)
- func ScreenNumGet(p *common.Pointer) uint
- func StateUpdate(X *xgbutil.XUtil, e xevent.PropertyNotifyEvent)
- type Client
- type Dimensions
- type Head
- type Hints
- type Info
- type Manager
Constants ¶
This section is empty.
Variables ¶
View Source
var ( X *xgbutil.XUtil // X connection object ScreenCount uint // Number of screens CurrentDesk uint // Current desktop number CurrentScreen uint // Current screen number CurrentPointer *common.Pointer // Pointer position ActiveWindow xproto.Window // Current active window Windows []xproto.Window // List of client windows ViewPorts Head // Physical connected monitors )
Functions ¶
func CurrentDesktopGet ¶
func DesktopDimensions ¶
func GetScreenNum ¶
func IsMaximized ¶
func OnPointerUpdate ¶
func OnPointerUpdate(fun func(uint16))
func OnStateUpdate ¶
func OnStateUpdate(fun func(string))
func PointerUpdate ¶
func ScreenNumGet ¶
func StateUpdate ¶
func StateUpdate(X *xgbutil.XUtil, e xevent.PropertyNotifyEvent)
Types ¶
type Client ¶
type Client struct { Win *xwindow.Window `json:"-"` // X window object Created time.Time // Internal client creation time Original *Info // Original client window information Latest *Info // Latest client window information }
func CreateClient ¶
func (*Client) MoveResize ¶
type Dimensions ¶
type Head ¶
type Head struct { Screens xinerama.Heads // Screen size (full monitor size) Desktops xinerama.Heads // Desktop size (workarea without panels) }
func ViewPortsGet ¶
type Hints ¶
type Hints struct { Normal icccm.NormalHints // Client window geometry hints Motif motif.Hints // Client window decoration hints }
type Info ¶
type Info struct { Class string // Client window application name Name string // Client window title name DeskNum uint // Client window desktop ScreenNum uint // Client window screen Types []string // Client window types States []string // Client window states Dimensions Dimensions // Client window dimensions }
type Manager ¶
type Manager struct { DeskNum uint // Index of managed desktop ScreenNum uint // Index of managed screen Clients []*Client // List of clients }
func CreateManager ¶
func (*Manager) RemoveClient ¶
Click to show internal directories.
Click to hide internal directories.