ewmh

package
v0.0.0-...-c8e43d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LENGTH_MAX = math.MaxUint32

Variables

This section is empty.

Functions

func RequestChangeActiveWindow

func RequestChangeActiveWindow(c *x.Conn, windowToActivate x.Window, source ClientSource, timestamp x.Timestamp,
	currentActiveWindow x.Window) x.VoidCookie

func RequestChangeCurrentDesktop

func RequestChangeCurrentDesktop(c *x.Conn, desktop uint32, timestamp x.Timestamp) x.VoidCookie

func RequestChangeDesktopGeometry

func RequestChangeDesktopGeometry(c *x.Conn, geo DesktopGeometry) x.VoidCookie

func RequestChangeDesktopViewport

func RequestChangeDesktopViewport(c *x.Conn, corner ViewportLeftTopCorner) x.VoidCookie

func RequestChangeShowingDesktop

func RequestChangeShowingDesktop(c *x.Conn, show bool) x.VoidCookie

func RequestChangeWMDesktop

func RequestChangeWMDesktop(c *x.Conn, window x.Window, desktop uint32, source ClientSource) x.VoidCookie

*

  • _NET_WM_DESKTOP

func RequestChangeWMFullscreenMonitors

func RequestChangeWMFullscreenMonitors(c *x.Conn, window x.Window, edges WMFullscreenMonitors,
	source ClientSource) x.VoidCookie

* _NET_WM_FULLSCREEN_MONITORS

func RequestChangeWMState

func RequestChangeWMState(c *x.Conn, window x.Window, action WMStateAction, firstProperty, secondProperty x.Atom,
	source ClientSource) x.VoidCookie

func RequestCloseWindow

func RequestCloseWindow(c *x.Conn, window x.Window, timestamp x.Timestamp, source ClientSource) x.VoidCookie

func RequestMoveResizeWindow

func RequestMoveResizeWindow(c *x.Conn, window x.Window, gravity uint32, source ClientSource, flags MoveResizeWindowFlags,
	x, y, width, height uint32) x.VoidCookie

func RequestRestackWindow

func RequestRestackWindow(c *x.Conn, window, siblingWindow x.Window, stackMode uint32) x.VoidCookie

func RequestWMMoveResize

func RequestWMMoveResize(c *x.Conn, window x.Window, xRoot, yRoot uint32, direction MoveResizeDirection,
	button uint32, source ClientSource) x.VoidCookie

func SendWMPing

func SendWMPing(c *x.Conn, window x.Window, timestamp x.Timestamp) x.VoidCookie

func SendWMSyncRequest

func SendWMSyncRequest(c *x.Conn, window x.Window, timestamp x.Timestamp, counter WMSyncRequestCounter) x.VoidCookie

func SetActiveWindow

func SetActiveWindow(c *x.Conn, val x.Window)

func SetActiveWindowChecked

func SetActiveWindowChecked(c *x.Conn, val x.Window) x.VoidCookie

func SetClientList

func SetClientList(c *x.Conn, vals []x.Window)

func SetClientListChecked

func SetClientListChecked(c *x.Conn, vals []x.Window) x.VoidCookie

func SetClientListStacking

func SetClientListStacking(c *x.Conn, vals []x.Window)

func SetClientListStackingChecked

func SetClientListStackingChecked(c *x.Conn, vals []x.Window) x.VoidCookie

func SetCurrentDesktop

func SetCurrentDesktop(c *x.Conn, val uint32)

func SetCurrentDesktopChecked

func SetCurrentDesktopChecked(c *x.Conn, val uint32) x.VoidCookie

func SetDesktopGeometry

func SetDesktopGeometry(c *x.Conn, val DesktopGeometry)

func SetDesktopGeometryChecked

func SetDesktopGeometryChecked(c *x.Conn, val DesktopGeometry) x.VoidCookie

func SetDesktopLayout

func SetDesktopLayout(c *x.Conn, val DesktopLayout)

func SetDesktopLayoutChecked

func SetDesktopLayoutChecked(c *x.Conn, val DesktopLayout) x.VoidCookie

func SetDesktopNames

func SetDesktopNames(c *x.Conn, vals []string)

func SetDesktopNamesChecked

func SetDesktopNamesChecked(c *x.Conn, vals []string) x.VoidCookie

func SetDesktopViewport

func SetDesktopViewport(c *x.Conn, vals []ViewportLeftTopCorner)

func SetDesktopViewportChecked

func SetDesktopViewportChecked(c *x.Conn, vals []ViewportLeftTopCorner) x.VoidCookie

func SetFrameExtents

func SetFrameExtents(c *x.Conn, window x.Window, val FrameExtents)

func SetFrameExtentsChecked

func SetFrameExtentsChecked(c *x.Conn, window x.Window, val FrameExtents) x.VoidCookie

func SetNumberOfDesktop

func SetNumberOfDesktop(c *x.Conn, val uint32)

func SetNumberOfDesktopChecked

func SetNumberOfDesktopChecked(c *x.Conn, val uint32) x.VoidCookie

func SetShowingDesktop

func SetShowingDesktop(c *x.Conn, show bool)

func SetShowingDesktopChecked

func SetShowingDesktopChecked(c *x.Conn, show bool) x.VoidCookie

func SetSupported

func SetSupported(c *x.Conn, vals []x.Atom)

func SetSupportedChecked

func SetSupportedChecked(c *x.Conn, vals []x.Atom) x.VoidCookie

func SetSupportingWMCheck

func SetSupportingWMCheck(c *x.Conn, val x.Window)

func SetSupportingWMCheckChecked

func SetSupportingWMCheckChecked(c *x.Conn, val x.Window) x.VoidCookie

func SetVirtualRoots

func SetVirtualRoots(c *x.Conn, vals []x.Window)

func SetVirtualRootsChecked

func SetVirtualRootsChecked(c *x.Conn, vals []x.Window) x.VoidCookie

func SetWMAllowedActions

func SetWMAllowedActions(c *x.Conn, window x.Window, vals []x.Atom)

func SetWMAllowedActionsChecked

func SetWMAllowedActionsChecked(c *x.Conn, window x.Window, vals []x.Atom) x.VoidCookie

func SetWMDesktop

func SetWMDesktop(c *x.Conn, window x.Window, val uint32)

func SetWMDesktopChecked

func SetWMDesktopChecked(c *x.Conn, window x.Window, val uint32) x.VoidCookie

func SetWMFullscreenMonitors

func SetWMFullscreenMonitors(c *x.Conn, window x.Window, val WMFullscreenMonitors)

func SetWMFullscreenMonitorsChecked

func SetWMFullscreenMonitorsChecked(c *x.Conn, window x.Window, val WMFullscreenMonitors) x.VoidCookie

func SetWMHandledIcons

func SetWMHandledIcons(c *x.Conn, window x.Window, val uint32)

func SetWMHandledIconsChecked

func SetWMHandledIconsChecked(c *x.Conn, window x.Window, val uint32) x.VoidCookie

func SetWMIconGeometry

func SetWMIconGeometry(c *x.Conn, window x.Window, val WMIconGeometry)

func SetWMIconGeometryChecked

func SetWMIconGeometryChecked(c *x.Conn, window x.Window, val WMIconGeometry) x.VoidCookie

func SetWMIconName

func SetWMIconName(c *x.Conn, window x.Window, val string)

func SetWMIconNameChecked

func SetWMIconNameChecked(c *x.Conn, window x.Window, val string) x.VoidCookie

func SetWMName

func SetWMName(c *x.Conn, window x.Window, val string)

func SetWMNameChecked

func SetWMNameChecked(c *x.Conn, window x.Window, val string) x.VoidCookie

func SetWMPid

func SetWMPid(c *x.Conn, window x.Window, val uint32)

func SetWMPidChecked

func SetWMPidChecked(c *x.Conn, window x.Window, val uint32) x.VoidCookie

func SetWMState

func SetWMState(c *x.Conn, window x.Window, vals []x.Atom)

func SetWMStateChecked

func SetWMStateChecked(c *x.Conn, window x.Window, vals []x.Atom) x.VoidCookie

func SetWMStrut

func SetWMStrut(c *x.Conn, window x.Window, val WMStrut)

func SetWMStrutChecked

func SetWMStrutChecked(c *x.Conn, window x.Window, val WMStrut) x.VoidCookie

func SetWMStrutPartial

func SetWMStrutPartial(c *x.Conn, window x.Window, val WMStrutPartial)

func SetWMStrutPartialChecked

func SetWMStrutPartialChecked(c *x.Conn, window x.Window, val WMStrutPartial) x.VoidCookie

func SetWMSyncRequestCounter

func SetWMSyncRequestCounter(c *x.Conn, window x.Window, val WMSyncRequestCounter)

func SetWMSyncRequestCounterChecked

func SetWMSyncRequestCounterChecked(c *x.Conn, window x.Window, val WMSyncRequestCounter) x.VoidCookie

func SetWMUserTime

func SetWMUserTime(c *x.Conn, window x.Window, val uint32)

func SetWMUserTimeChecked

func SetWMUserTimeChecked(c *x.Conn, window x.Window, val uint32) x.VoidCookie

func SetWMUserTimeWindow

func SetWMUserTimeWindow(c *x.Conn, window x.Window, val x.Window)

func SetWMUserTimeWindowChecked

func SetWMUserTimeWindowChecked(c *x.Conn, window x.Window, val x.Window) x.VoidCookie

func SetWMVisibleIconName

func SetWMVisibleIconName(c *x.Conn, window x.Window, val string)

func SetWMVisibleIconNameChecked

func SetWMVisibleIconNameChecked(c *x.Conn, window x.Window, val string) x.VoidCookie

func SetWMVisibleName

func SetWMVisibleName(c *x.Conn, window x.Window, val string)

func SetWMVisibleNameChecked

func SetWMVisibleNameChecked(c *x.Conn, window x.Window, val string) x.VoidCookie

func SetWMWindowType

func SetWMWindowType(c *x.Conn, window x.Window, vals []x.Atom)

func SetWMWindowTypeChecked

func SetWMWindowTypeChecked(c *x.Conn, window x.Window, vals []x.Atom) x.VoidCookie

func SetWorkarea

func SetWorkarea(c *x.Conn, vals []WorkareaGeometry)

func SetWorkareaChecked

func SetWorkareaChecked(c *x.Conn, vals []WorkareaGeometry) x.VoidCookie

Types

type ClientSource

type ClientSource uint32
const (
	// No source at all (for clients supporting an older version of EWMH specification)
	ClientSourceNone ClientSource = iota
	// normal application
	ClientSourceNormal
	// pagers and other clients that represent direct user actions
	ClientSourceOther
)

type DesktopGeometry

type DesktopGeometry struct {
	Width, Height uint32
}

type DesktopLayout

type DesktopLayout struct {
	Orientation, Columns, Rows, StartingCorner uint32
}

type FrameExtents

type FrameExtents struct {
	Left, Right, Top, Bottom uint32
}

type GetAtomsCookie

type GetAtomsCookie x.GetPropertyCookie

func GetSupported

func GetSupported(c *x.Conn) GetAtomsCookie

func GetWMAllowedActions

func GetWMAllowedActions(c *x.Conn, window x.Window) GetAtomsCookie

func GetWMState

func GetWMState(c *x.Conn, window x.Window) GetAtomsCookie

func GetWMWindowType

func GetWMWindowType(c *x.Conn, window x.Window) GetAtomsCookie

func (GetAtomsCookie) Reply

func (cookie GetAtomsCookie) Reply(c *x.Conn) ([]x.Atom, error)

type GetBooleanCookie

type GetBooleanCookie x.GetPropertyCookie

func GetShowingDesktop

func GetShowingDesktop(c *x.Conn) GetBooleanCookie

func (GetBooleanCookie) Reply

func (cookie GetBooleanCookie) Reply(c *x.Conn) (bool, error)

type GetCardinalCookie

type GetCardinalCookie x.GetPropertyCookie

func GetCurrentDesktop

func GetCurrentDesktop(c *x.Conn) GetCardinalCookie

func GetNumberOfDesktop

func GetNumberOfDesktop(c *x.Conn) GetCardinalCookie

func GetWMDesktop

func GetWMDesktop(c *x.Conn, window x.Window) GetCardinalCookie

func GetWMHandledIcons

func GetWMHandledIcons(c *x.Conn, window x.Window) GetCardinalCookie

func GetWMPid

func GetWMPid(c *x.Conn, window x.Window) GetCardinalCookie

func GetWMUserTime

func GetWMUserTime(c *x.Conn, window x.Window) GetCardinalCookie

func (GetCardinalCookie) Reply

func (cookie GetCardinalCookie) Reply(c *x.Conn) (uint32, error)

type GetCardinalsCookie

type GetCardinalsCookie x.GetPropertyCookie

func (GetCardinalsCookie) Reply

func (cookie GetCardinalsCookie) Reply(c *x.Conn) ([]uint32, error)

type GetDesktopGeometryCookie

type GetDesktopGeometryCookie x.GetPropertyCookie

func GetDesktopGeometry

func GetDesktopGeometry(c *x.Conn) GetDesktopGeometryCookie

func (GetDesktopGeometryCookie) Reply

func (cookie GetDesktopGeometryCookie) Reply(c *x.Conn) (DesktopGeometry, error)

type GetDesktopLayoutCookie

type GetDesktopLayoutCookie x.GetPropertyCookie

func GetDesktopLayout

func GetDesktopLayout(c *x.Conn) GetDesktopLayoutCookie

func (GetDesktopLayoutCookie) Reply

func (cookie GetDesktopLayoutCookie) Reply(c *x.Conn) (DesktopLayout, error)

type GetDesktopViewportCookie

type GetDesktopViewportCookie x.GetPropertyCookie

func GetDesktopViewport

func GetDesktopViewport(c *x.Conn) GetDesktopViewportCookie

func (GetDesktopViewportCookie) Reply

type GetFrameExtentsCookie

type GetFrameExtentsCookie x.GetPropertyCookie

func GetFrameExtents

func GetFrameExtents(c *x.Conn, window x.Window) GetFrameExtentsCookie

func (GetFrameExtentsCookie) Reply

func (cookie GetFrameExtentsCookie) Reply(c *x.Conn) (FrameExtents, error)

type GetUTF8StrCookie

type GetUTF8StrCookie x.GetPropertyCookie

func GetWMIconName

func GetWMIconName(c *x.Conn, window x.Window) GetUTF8StrCookie

func GetWMName

func GetWMName(c *x.Conn, window x.Window) GetUTF8StrCookie

func GetWMVisibleIconName

func GetWMVisibleIconName(c *x.Conn, window x.Window) GetUTF8StrCookie

func GetWMVisibleName

func GetWMVisibleName(c *x.Conn, window x.Window) GetUTF8StrCookie

func (GetUTF8StrCookie) Reply

func (cookie GetUTF8StrCookie) Reply(c *x.Conn) (string, error)

type GetUTF8StrsCookie

type GetUTF8StrsCookie x.GetPropertyCookie

func GetDesktopNames

func GetDesktopNames(c *x.Conn) GetUTF8StrsCookie

func (GetUTF8StrsCookie) Reply

func (cookie GetUTF8StrsCookie) Reply(c *x.Conn) ([]string, error)

type GetWMFullscreenMonitorsCookie

type GetWMFullscreenMonitorsCookie x.GetPropertyCookie

func GetWMFullscreenMonitors

func GetWMFullscreenMonitors(c *x.Conn, window x.Window) GetWMFullscreenMonitorsCookie

func (GetWMFullscreenMonitorsCookie) Reply

type GetWMIconCookie

type GetWMIconCookie x.GetPropertyCookie

func GetWMIcon

func GetWMIcon(c *x.Conn, window x.Window) GetWMIconCookie

func (GetWMIconCookie) Reply

func (cookie GetWMIconCookie) Reply(c *x.Conn) ([]WMIcon, error)

type GetWMIconGeometryCookie

type GetWMIconGeometryCookie x.GetPropertyCookie

func GetWMIconGeometry

func GetWMIconGeometry(c *x.Conn, window x.Window) GetWMIconGeometryCookie

func (GetWMIconGeometryCookie) Reply

func (cookie GetWMIconGeometryCookie) Reply(c *x.Conn) (WMIconGeometry, error)

type GetWMStrutCookie

type GetWMStrutCookie x.GetPropertyCookie

func GetWMStrut

func GetWMStrut(c *x.Conn, window x.Window) GetWMStrutCookie

func (GetWMStrutCookie) Reply

func (cookie GetWMStrutCookie) Reply(c *x.Conn) (WMStrut, error)

type GetWMStrutPartialCookie

type GetWMStrutPartialCookie x.GetPropertyCookie

func GetWMStrutPartial

func GetWMStrutPartial(c *x.Conn, window x.Window) GetWMStrutPartialCookie

func (GetWMStrutPartialCookie) Reply

func (cookie GetWMStrutPartialCookie) Reply(c *x.Conn) (WMStrutPartial, error)

type GetWMSyncRequestCounterCookie

type GetWMSyncRequestCounterCookie x.GetPropertyCookie

func GetWMSyncRequestCounter

func GetWMSyncRequestCounter(c *x.Conn, window x.Window) GetWMSyncRequestCounterCookie

func (GetWMSyncRequestCounterCookie) Reply

type GetWindowCookie

type GetWindowCookie x.GetPropertyCookie

func GetActiveWindow

func GetActiveWindow(c *x.Conn) GetWindowCookie

func GetSupportingWMCheck

func GetSupportingWMCheck(c *x.Conn) GetWindowCookie

func GetWMUserTimeWindow

func GetWMUserTimeWindow(c *x.Conn, window x.Window) GetWindowCookie

func (GetWindowCookie) Reply

func (cookie GetWindowCookie) Reply(c *x.Conn) (x.Window, error)

type GetWindowsCookie

type GetWindowsCookie x.GetPropertyCookie

func GetClientList

func GetClientList(c *x.Conn) GetWindowsCookie

func GetClientListStacking

func GetClientListStacking(c *x.Conn) GetWindowsCookie

func GetVirtualRoots

func GetVirtualRoots(c *x.Conn) GetWindowsCookie

func (GetWindowsCookie) Reply

func (cookie GetWindowsCookie) Reply(c *x.Conn) ([]x.Window, error)

type GetWorkareaCookie

type GetWorkareaCookie x.GetPropertyCookie

func GetWorkarea

func GetWorkarea(c *x.Conn) GetWorkareaCookie

func (GetWorkareaCookie) Reply

func (cookie GetWorkareaCookie) Reply(c *x.Conn) ([]WorkareaGeometry, error)

type MoveResizeDirection

type MoveResizeDirection uint32
const (
	MoveResizeSizeTopLeft MoveResizeDirection = iota
	MoveResizeSizeTop
	MoveResizeSizeTopRight
	MoveResizeSizeRight
	MoveResizeSizeBottomRight
	MoveResizeSizeBottom // 5
	MoveResizeSizeBottomLeft
	MoveResizeSizeLeft
	MoveResizeMove
	MoveResizeSizeKeyboard
	MoveResizeMoveKeyboard // 10
	MoveResizeCancel
)

type MoveResizeWindowFlags

type MoveResizeWindowFlags uint32
const (
	MoveResizeWindowX MoveResizeWindowFlags = 1 << (8 + iota)
	MoveResizeWindowY
	MoveResizeWindowWidth
	MoveResizeWindowHeight
)

type ViewportLeftTopCorner

type ViewportLeftTopCorner struct {
	X, Y uint32
}

type WMFullscreenMonitors

type WMFullscreenMonitors struct {
	Top, Bottom, Left, Right uint32
}

type WMIcon

type WMIcon struct {
	Width, Height uint32
	Data          []byte
}

func (*WMIcon) String

func (icon *WMIcon) String() string

type WMIconGeometry

type WMIconGeometry struct {
	X, Y, Width, Height uint32
}

type WMStateAction

type WMStateAction uint32
const (
	WMStateRemove WMStateAction = iota
	WMStateAdd
	WMStateToggle
)

type WMStrut

type WMStrut struct {
	Left, Right, Top, Bottom uint32
}

type WMStrutPartial

type WMStrutPartial struct {
	Left, Right, Top, Bottom, LeftStartY, LeftEndY, RightStartY, RightEndY, TopStartX, TopEndX, BottomStartX, BottomEndX uint32
}

type WMSyncRequestCounter

type WMSyncRequestCounter struct {
	Low, High uint32
}

func NewWMSyncRequestCounter

func NewWMSyncRequestCounter(val uint64) WMSyncRequestCounter

func (WMSyncRequestCounter) String

func (counter WMSyncRequestCounter) String() string

func (WMSyncRequestCounter) ToUint64

func (counter WMSyncRequestCounter) ToUint64() uint64

type WorkareaGeometry

type WorkareaGeometry struct {
	X, Y, Width, Height uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL