focus

package
v0.0.0-...-1378ae3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptClientFocus

func AcceptClientFocus(mode, detail byte) bool

func Focus

func Focus(w FocusableWindow)

func FocusLast

func FocusLast()

func FocusLastWithPreference

func FocusLastWithPreference(isPreferred func(window xproto.Window) bool)

func InitialAdd

func InitialAdd(w FocusableWindow)

func Initialize

func Initialize(_x *xgbutil.XUtil)

func Remove

func Remove(w FocusableWindow) bool

func SetFocus

func SetFocus(w FocusableWindow)

Types

type FocusableWindow

type FocusableWindow interface {
	Id() xproto.Window

	IsFocusable() bool // whether the window is in state it can be focused (mapped)
	IsFocused() bool

	CanFocus() bool
	ShouldSendFocusNotify() bool // WM_TAKE_FOCUS protocol

	PrepareForFocus(tmp bool)
	ApplyFocus() // set focus on the actual window, send focus notify
	Focused()
	Unfocused()
}

func Current

func Current() FocusableWindow

func CyclingEnded

func CyclingEnded() FocusableWindow

func CyclingFocus

func CyclingFocus(state int) FocusableWindow

Jump to

Keyboard shortcuts

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