x11

package
v0.0.0-...-ad944e5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandrEventWatcher

type RandrEventWatcher struct {
	// contains filtered or unexported fields
}

RandrEventWatcher watches for randr events in X, allowing other parts of the application to react to randr events (e.g. for re-rendering bars).

func NewRandrEventWatcher

func NewRandrEventWatcher(dispatcher *event.Dispatcher, xc *xgb.Conn) *RandrEventWatcher

NewRandrEventWatcher returns a new RandrEventWatcher instance.

func (*RandrEventWatcher) Watch

func (w *RandrEventWatcher) Watch(ctx context.Context)

Watch starts watching for randr events from the X server. It will debounce events, waiting for 1 second of no event activity before sending a WM event in the event dispatcher.

Jump to

Keyboard shortcuts

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