Documentation ¶
Index ¶
- func AcceptClientFocus(mode, detail byte) bool
- func Focus(w FocusableWindow)
- func FocusLast()
- func FocusLastWithPreference(isPreferred func(window xproto.Window) bool)
- func InitialAdd(w FocusableWindow)
- func Initialize(_x *xgbutil.XUtil)
- func Remove(w FocusableWindow) bool
- func SetFocus(w FocusableWindow)
- type FocusableWindow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptClientFocus ¶
func Focus ¶
func Focus(w FocusableWindow)
func FocusLastWithPreference ¶
func InitialAdd ¶
func InitialAdd(w FocusableWindow)
func Initialize ¶
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
Click to show internal directories.
Click to hide internal directories.