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.
Click to show internal directories.
Click to hide internal directories.