windowmanagerhandler

package
v0.0.0-...-bd6d067 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PID

type PID int // using the same underlying type as `os` does

type PlatformSpecificWindowManagerHandler

type PlatformSpecificWindowManagerHandler struct {
	XWMOrWaylandWM
}

type UID

type UID int // using the same underlying type as `os` does

type WindowFocusChange

type WindowFocusChange struct {
	WindowID    *WindowID
	WindowTitle *string
	ProcessID   *PID
	UserID      *UID
	ProcessName *string
}

type WindowID

type WindowID uint64

type WindowManagerHandler

type WindowManagerHandler struct {
	PlatformSpecificWindowManagerHandler
}

func New

func New() (*WindowManagerHandler, error)

func (*WindowManagerHandler) Close

func (wmh *WindowManagerHandler) Close() error

func (*WindowManagerHandler) WindowFocusChangeChan

func (wmh *WindowManagerHandler) WindowFocusChangeChan(ctx context.Context) <-chan WindowFocusChange

type XWMOrWaylandWM

type XWMOrWaylandWM interface {
	Close() error
	WindowFocusChangeChan(ctx context.Context) <-chan WindowFocusChange
}

type XWindowManagerHandler

type XWindowManagerHandler struct {
	*xgbutil.XUtil
}

func (*XWindowManagerHandler) Close

func (wmh *XWindowManagerHandler) Close() error

func (*XWindowManagerHandler) WindowFocusChangeChan

func (wmh *XWindowManagerHandler) WindowFocusChangeChan(ctx context.Context) <-chan WindowFocusChange

Jump to

Keyboard shortcuts

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