Documentation
¶
Overview ¶
Package compositor connects backend events to the server and draws each output's frames.
Index ¶
- Constants
- Variables
- func DefaultGestureBinds(workspaces anim.Style) []binds.GestureBind
- func DefaultSettings() wm.Settings
- func PlainSettings() wm.Settings
- type Blur
- type Compositor
- func (c *Compositor) ActivationTokens() int
- func (c *Compositor) AdoptHandover(st *HandoverState, t *handover.FDs) (func() error, error)
- func (c *Compositor) AdoptionShown() bool
- func (c *Compositor) Animating(o *output.Output) bool
- func (c *Compositor) ApplyColorMatrix(o *output.Output, m backend.Matrix) error
- func (c *Compositor) Awaiting() error
- func (c *Compositor) BindLookups() uint64
- func (c *Compositor) BlurRedraws() uint64
- func (c *Compositor) BufferDestroyed(b *dmabuf.Buffer) error
- func (c *Compositor) BuildOffThread() error
- func (c *Compositor) Busy() string
- func (c *Compositor) CanDrag(origin *surface.Surface, serial uint32) bool
- func (c *Compositor) Capture(send func(ipc.Event)) (ipc.CaptureSession, error)
- func (c *Compositor) CapturedPixels() uint64
- func (c *Compositor) ClientResponsive(cl *server.Client, responsive bool) error
- func (c *Compositor) Close() error
- func (c *Compositor) ClosingAt(now time.Duration) image.Point
- func (c *Compositor) ClosingCount() int
- func (c *Compositor) CommitTimerArmed() time.Duration
- func (c *Compositor) Committed(s *surface.Surface) error
- func (c *Compositor) CompleteAdoption() error
- func (c *Compositor) Configure(heads []outputmanagement.HeadConfig, apply bool) error
- func (c *Compositor) CopiedBytes() uint64
- func (c *Compositor) CreateOutput(spec ipc.OutputSpec) (ipc.CreatedOutput, error)
- func (c *Compositor) CurrentSelection(k data.Kind) data.Source
- func (c *Compositor) Cursor() (float64, float64)
- func (c *Compositor) CursorChanged() error
- func (c *Compositor) CursorGrowth() float64
- func (c *Compositor) CursorHidden() bool
- func (c *Compositor) CursorIdleChecks() uint64
- func (c *Compositor) CursorShape() string
- func (c *Compositor) CursorsLoading() bool
- func (c *Compositor) DataDragging() bool
- func (c *Compositor) Destroyed(s *surface.Surface) error
- func (c *Compositor) DeviceAdded(d backend.Device) error
- func (c *Compositor) DeviceRemoved(d backend.Device) error
- func (c *Compositor) DirtyOverviewThumbs()
- func (c *Compositor) Dispatch(a wm.Action) error
- func (c *Compositor) DispatchPrepared(a wm.Action, loaded func() error) error
- func (c *Compositor) Display() *server.Display
- func (c *Compositor) DragEnded(d *data.Drag) error
- func (c *Compositor) DragHoldLooks() uint64
- func (c *Compositor) DragStarted(d *data.Drag) error
- func (c *Compositor) Dragging() bool
- func (c *Compositor) FilteredPixels() uint64
- func (c *Compositor) FinishAdoption() error
- func (c *Compositor) FocusTimestamp(id wm.WindowID) uint64
- func (c *Compositor) ForeignDrag(src data.DragSource) (*data.Drag, error)
- func (c *Compositor) Frame(b backend.Output) error
- func (c *Compositor) FrameCost(o *output.Output) (draws, pixels int)
- func (c *Compositor) GPUResets() uint64
- func (c *Compositor) GammaBlocked(o *output.Output) bool
- func (c *Compositor) GrabChanged() error
- func (c *Compositor) HandoverState(t *handover.FDs, skip func(*server.Client) bool) (*HandoverState, error)
- func (c *Compositor) Heads() []outputmanagement.Head
- func (c *Compositor) HiddenFrames() uint64
- func (c *Compositor) Holding() bool
- func (c *Compositor) Holds() HoldStats
- func (c *Compositor) HotCornerScans() uint64
- func (c *Compositor) Icon(id wm.WindowID, size int) (*image.RGBA, int, error)
- func (c *Compositor) Input(d backend.Device, e backend.Event) error
- func (c *Compositor) JellyRedraws() uint64
- func (c *Compositor) KeyboardFocusChanged(s *surface.Surface) error
- func (c *Compositor) KeyboardStateChanged()
- func (c *Compositor) LabelsPending() bool
- func (c *Compositor) Landed() uint64
- func (c *Compositor) LayerCommitted(l *shell.LayerSurface) error
- func (c *Compositor) LayerDestroyed(l *shell.LayerSurface) error
- func (c *Compositor) LayerUnmapped(l *shell.LayerSurface) error
- func (c *Compositor) LidPending() bool
- func (c *Compositor) LockChanged() error
- func (c *Compositor) LockOutputSize(wl *sw.WlOutput) (image.Point, bool)
- func (c *Compositor) LockReleasing() error
- func (c *Compositor) MintActivationToken(cl *server.Client, serial uint32) (string, error)
- func (c *Compositor) MirrorDraws(name string) (uint64, bool)
- func (c *Compositor) Now() time.Duration
- func (c *Compositor) OffScreen(b *dmabuf.Buffer, f func() error) error
- func (c *Compositor) OnIPCEvents(e IPCEvents)
- func (c *Compositor) OnModifiersReleased(mods uint32, done func() error)
- func (c *Compositor) OnStateChange(f func())
- func (c *Compositor) OutputAdded(b backend.Output) error
- func (c *Compositor) OutputChanged(b backend.Output) error
- func (c *Compositor) OutputDamaged(b backend.Output) error
- func (c *Compositor) OutputDescription(o *output.Output) *colorspace.Description
- func (c *Compositor) OutputGamma(o *output.Output) (backend.Gamma, bool)
- func (c *Compositor) OutputRemoved(b backend.Output) error
- func (c *Compositor) Outputs() []*output.Output
- func (c *Compositor) OverviewListed(o *output.Output) []wm.WindowID
- func (c *Compositor) OverviewProgress(now time.Duration) float64
- func (c *Compositor) OverviewSlots(o *output.Output) []image.Rectangle
- func (c *Compositor) OverviewThumbRedraws() uint64
- func (c *Compositor) OverviewThumbWindows(o *output.Output, id wm.WorkspaceID) []wm.WindowID
- func (c *Compositor) OverviewThumbsStale() bool
- func (c *Compositor) OverviewWindowRect(id wm.WindowID, now time.Duration) (image.Rectangle, bool)
- func (c *Compositor) Owner(res *sw.WlOutput) *output.Output
- func (c *Compositor) Park()
- func (c *Compositor) PickWindow(answer func(*wm.WindowID, error)) (func(), error)
- func (c *Compositor) PointerFocusChanged(*surface.Surface) error
- func (c *Compositor) PointerWarps() uint64
- func (c *Compositor) PopupConstraint(root shell.PopupRoot) image.Rectangle
- func (c *Compositor) PopupMapped(*shell.Popup) error
- func (c *Compositor) PopupUnmapped(*shell.Popup) error
- func (c *Compositor) PopupsChanged() error
- func (c *Compositor) PowerChanged()
- func (c *Compositor) Powered(o *output.Output) bool
- func (c *Compositor) PreferredDescription(s *surface.Surface) *colorspace.Description
- func (c *Compositor) PrepareDispatch(a wm.Action) func() error
- func (c *Compositor) Presented(b backend.Output, p backend.Presentation) error
- func (c *Compositor) Reconfigure(cfg Config) error
- func (c *Compositor) ReloadConfig()
- func (c *Compositor) ReloadPending() bool
- func (c *Compositor) RemoveOutput(name string) error
- func (c *Compositor) Resume() error
- func (c *Compositor) Reuploads() uint64
- func (c *Compositor) RuleEvaluations() int
- func (c *Compositor) ScaleXwayland(clients func(*server.Client) bool) error
- func (c *Compositor) Seat() *seat.Seat
- func (c *Compositor) Selection(k data.Kind) bool
- func (c *Compositor) SelectionChanged(k data.Kind, src data.Source) error
- func (c *Compositor) SetDropTarget(t data.DropTarget)
- func (c *Compositor) SetOutputScale(b backend.Output, scale output.Scale) error
- func (c *Compositor) SetPower(o *output.Output, on bool) error
- func (c *Compositor) SetPowerSaver(on bool)
- func (c *Compositor) SetSelection(k data.Kind, src data.Source) error
- func (c *Compositor) Settle() error
- func (c *Compositor) ShmSyncReads() uint64
- func (c *Compositor) ShowConfigProblems(p ConfigProblems)
- func (c *Compositor) Snapshot() ipc.Snapshot
- func (c *Compositor) Stalls(id wm.WindowID) (int, bool)
- func (c *Compositor) StateUpdates() uint64
- func (c *Compositor) SurfaceScanout(s *surface.Surface) gpu.ScanoutTarget
- func (c *Compositor) SwitcherFrames() uint64
- func (c *Compositor) SwitcherOpen() bool
- func (c *Compositor) SwitcherPreview(id wm.WindowID) (image.Rectangle, bool)
- func (c *Compositor) SwitcherThumbRedraws() uint64
- func (c *Compositor) SwitcherWindows() []wm.WindowID
- func (c *Compositor) ToplevelChanged(t *shell.Toplevel, change shell.Change) error
- func (c *Compositor) ToplevelInitialCommit(st *shell.Toplevel) error
- func (c *Compositor) ToplevelMapped(t *shell.Toplevel) error
- func (c *Compositor) ToplevelRequest(t *shell.Toplevel, r shell.Request) error
- func (c *Compositor) ToplevelUnmapped(t *shell.Toplevel) error
- func (c *Compositor) Toplevels() []*shell.Toplevel
- func (c *Compositor) TraceFrames(r *frametrace.Recorder)
- func (c *Compositor) UpgradeBlockers(dropX11 bool) []string
- func (c *Compositor) Urgent(t *shell.Toplevel) bool
- func (c *Compositor) UserActive(client *server.Client, serial uint32) bool
- func (c *Compositor) WM() wm.State
- func (c *Compositor) WaitForExecs()
- func (c *Compositor) WatchSelection(f func(data.Kind, data.Source) error)
- func (c *Compositor) WatchWorkArea(f func(image.Rectangle))
- func (c *Compositor) WorkArea() image.Rectangle
- func (c *Compositor) XDragOver(over func(*surface.Surface, bool) error) error
- func (c *Compositor) XDragTarget() (*surface.Surface, float64, float64)
- func (c *Compositor) XWindowChanged(w *xwayland.Window) error
- func (c *Compositor) XWindowMapped(w *xwayland.Window) error
- func (c *Compositor) XWindowRequest(w *xwayland.Window, r xwayland.Request) error
- func (c *Compositor) XWindowResponsive(w *xwayland.Window, responsive bool) error
- func (c *Compositor) XWindowSynced(*xwayland.Window) error
- func (c *Compositor) XWindowUnmapped(w *xwayland.Window) error
- type Config
- type ConfigProblems
- type Corner
- type CursorBehavior
- type CursorColorBypass
- type CursorConfig
- type Decor
- type Dim
- type DragPreview
- type DragSwitch
- type Effects
- type ExactMode
- type ExecOutput
- type Gestures
- type HDRPolicy
- type HandoverState
- type HighResMode
- type HoldStats
- type Hooks
- type HotCorner
- type HotCornerSet
- type HotCorners
- type IPCEvents
- type Insets
- type LidPolicy
- type Look
- type Mica
- type ModePolicy
- type Opacity
- type OutputRule
- type OutputRules
- type OverviewStyle
- type PreferredMode
- type Shadow
- type StateColors
- type Swallow
- type SwitcherStyle
- type TabColors
- type TabStyle
- type TitlebarButton
- type TitlebarDoubleClick
- type TitlebarLights
- type TitlebarSide
- type Titlebars
- type VRRPolicy
- type VirtualOutput
- type WorkspaceRule
Constants ¶
View Source
const ( DefaultGestureDistance = 400 DefaultEdgeWidth = 16 )
View Source
const DefaultCursorSize = 24
View Source
const DefaultHDRHold = time.Second
View Source
const DefaultHiddenFrame = time.Second / 15
View Source
const (
DefaultHoldBound = 100 * time.Millisecond
)
View Source
const DefaultHotCornerPressure = 80
View Source
const DefaultInheritTimeout = 30 * time.Second
View Source
const DefaultPowerSaverRate = 60
View Source
const MaxGestureTouches = 10
Variables ¶
View Source
var ( LockedColour = render.Color{A: 0xff} AbandonedColour = render.Color{R: 0x60, A: 0xff} )
View Source
var (
Background = render.Color{R: 0x1e, G: 0x1e, B: 0x2e, A: 0xff}
)
View Source
var (
DefaultAccent = render.Color{R: 0xe0, G: 0x94, B: 0x7a, A: 0xff}
)
View Source
var ErrNotFromMouseBind = errors.New("only a mouse bind can start a drag")
View Source
var (
ErrPickCancelled = errors.New("compositor: the window pick was cancelled")
)
Functions ¶
func DefaultGestureBinds ¶
func DefaultGestureBinds(workspaces anim.Style) []binds.GestureBind
func DefaultSettings ¶
func PlainSettings ¶
Types ¶
type Compositor ¶
type Compositor struct {
// contains filtered or unexported fields
}
func (*Compositor) ActivationTokens ¶
func (c *Compositor) ActivationTokens() int
func (*Compositor) AdoptHandover ¶
func (c *Compositor) AdoptHandover(st *HandoverState, t *handover.FDs) (func() error, error)
func (*Compositor) AdoptionShown ¶
func (c *Compositor) AdoptionShown() bool
func (*Compositor) ApplyColorMatrix ¶
func (*Compositor) Awaiting ¶
func (c *Compositor) Awaiting() error
func (*Compositor) BindLookups ¶
func (c *Compositor) BindLookups() uint64
func (*Compositor) BlurRedraws ¶
func (c *Compositor) BlurRedraws() uint64
func (*Compositor) BufferDestroyed ¶
func (c *Compositor) BufferDestroyed(b *dmabuf.Buffer) error
func (*Compositor) BuildOffThread ¶
func (c *Compositor) BuildOffThread() error
func (*Compositor) Busy ¶
func (c *Compositor) Busy() string
func (*Compositor) CanDrag ¶
func (c *Compositor) CanDrag(origin *surface.Surface, serial uint32) bool
func (*Compositor) Capture ¶
func (c *Compositor) Capture(send func(ipc.Event)) (ipc.CaptureSession, error)
func (*Compositor) CapturedPixels ¶
func (c *Compositor) CapturedPixels() uint64
func (*Compositor) ClientResponsive ¶
func (c *Compositor) ClientResponsive(cl *server.Client, responsive bool) error
func (*Compositor) Close ¶
func (c *Compositor) Close() error
func (*Compositor) ClosingCount ¶
func (c *Compositor) ClosingCount() int
func (*Compositor) CommitTimerArmed ¶
func (c *Compositor) CommitTimerArmed() time.Duration
func (*Compositor) CompleteAdoption ¶
func (c *Compositor) CompleteAdoption() error
func (*Compositor) Configure ¶
func (c *Compositor) Configure(heads []outputmanagement.HeadConfig, apply bool) error
func (*Compositor) CopiedBytes ¶
func (c *Compositor) CopiedBytes() uint64
func (*Compositor) CreateOutput ¶
func (c *Compositor) CreateOutput(spec ipc.OutputSpec) (ipc.CreatedOutput, error)
func (*Compositor) CurrentSelection ¶
func (c *Compositor) CurrentSelection(k data.Kind) data.Source
func (*Compositor) Cursor ¶
func (c *Compositor) Cursor() (float64, float64)
func (*Compositor) CursorChanged ¶
func (c *Compositor) CursorChanged() error
func (*Compositor) CursorGrowth ¶
func (c *Compositor) CursorGrowth() float64
func (*Compositor) CursorHidden ¶
func (c *Compositor) CursorHidden() bool
func (*Compositor) CursorIdleChecks ¶
func (c *Compositor) CursorIdleChecks() uint64
func (*Compositor) CursorShape ¶
func (c *Compositor) CursorShape() string
func (*Compositor) CursorsLoading ¶
func (c *Compositor) CursorsLoading() bool
func (*Compositor) DataDragging ¶
func (c *Compositor) DataDragging() bool
func (*Compositor) DeviceAdded ¶
func (c *Compositor) DeviceAdded(d backend.Device) error
func (*Compositor) DeviceRemoved ¶
func (c *Compositor) DeviceRemoved(d backend.Device) error
func (*Compositor) DirtyOverviewThumbs ¶
func (c *Compositor) DirtyOverviewThumbs()
func (*Compositor) DispatchPrepared ¶
func (c *Compositor) DispatchPrepared(a wm.Action, loaded func() error) error
func (*Compositor) Display ¶
func (c *Compositor) Display() *server.Display
func (*Compositor) DragHoldLooks ¶
func (c *Compositor) DragHoldLooks() uint64
func (*Compositor) DragStarted ¶
func (c *Compositor) DragStarted(d *data.Drag) error
func (*Compositor) Dragging ¶
func (c *Compositor) Dragging() bool
func (*Compositor) FilteredPixels ¶
func (c *Compositor) FilteredPixels() uint64
func (*Compositor) FinishAdoption ¶
func (c *Compositor) FinishAdoption() error
func (*Compositor) FocusTimestamp ¶
func (c *Compositor) FocusTimestamp(id wm.WindowID) uint64
func (*Compositor) ForeignDrag ¶
func (c *Compositor) ForeignDrag(src data.DragSource) (*data.Drag, error)
func (*Compositor) GPUResets ¶
func (c *Compositor) GPUResets() uint64
func (*Compositor) GammaBlocked ¶
func (c *Compositor) GammaBlocked(o *output.Output) bool
func (*Compositor) GrabChanged ¶
func (c *Compositor) GrabChanged() error
func (*Compositor) HandoverState ¶
func (c *Compositor) HandoverState(t *handover.FDs, skip func(*server.Client) bool) (*HandoverState, error)
func (*Compositor) Heads ¶
func (c *Compositor) Heads() []outputmanagement.Head
func (*Compositor) HiddenFrames ¶
func (c *Compositor) HiddenFrames() uint64
func (*Compositor) Holding ¶
func (c *Compositor) Holding() bool
func (*Compositor) Holds ¶
func (c *Compositor) Holds() HoldStats
func (*Compositor) HotCornerScans ¶
func (c *Compositor) HotCornerScans() uint64
func (*Compositor) JellyRedraws ¶
func (c *Compositor) JellyRedraws() uint64
func (*Compositor) KeyboardFocusChanged ¶
func (c *Compositor) KeyboardFocusChanged(s *surface.Surface) error
func (*Compositor) KeyboardStateChanged ¶
func (c *Compositor) KeyboardStateChanged()
func (*Compositor) LabelsPending ¶
func (c *Compositor) LabelsPending() bool
func (*Compositor) Landed ¶
func (c *Compositor) Landed() uint64
func (*Compositor) LayerCommitted ¶
func (c *Compositor) LayerCommitted(l *shell.LayerSurface) error
func (*Compositor) LayerDestroyed ¶
func (c *Compositor) LayerDestroyed(l *shell.LayerSurface) error
func (*Compositor) LayerUnmapped ¶
func (c *Compositor) LayerUnmapped(l *shell.LayerSurface) error
func (*Compositor) LidPending ¶
func (c *Compositor) LidPending() bool
func (*Compositor) LockChanged ¶
func (c *Compositor) LockChanged() error
func (*Compositor) LockOutputSize ¶
func (*Compositor) LockReleasing ¶
func (c *Compositor) LockReleasing() error
func (*Compositor) MintActivationToken ¶
func (*Compositor) MirrorDraws ¶
func (c *Compositor) MirrorDraws(name string) (uint64, bool)
func (*Compositor) Now ¶
func (c *Compositor) Now() time.Duration
func (*Compositor) OffScreen ¶
func (c *Compositor) OffScreen(b *dmabuf.Buffer, f func() error) error
func (*Compositor) OnIPCEvents ¶
func (c *Compositor) OnIPCEvents(e IPCEvents)
func (*Compositor) OnModifiersReleased ¶
func (c *Compositor) OnModifiersReleased(mods uint32, done func() error)
func (*Compositor) OnStateChange ¶
func (c *Compositor) OnStateChange(f func())
func (*Compositor) OutputAdded ¶
func (c *Compositor) OutputAdded(b backend.Output) error
func (*Compositor) OutputChanged ¶
func (c *Compositor) OutputChanged(b backend.Output) error
func (*Compositor) OutputDamaged ¶
func (c *Compositor) OutputDamaged(b backend.Output) error
func (*Compositor) OutputDescription ¶
func (c *Compositor) OutputDescription(o *output.Output) *colorspace.Description
func (*Compositor) OutputGamma ¶
func (*Compositor) OutputRemoved ¶
func (c *Compositor) OutputRemoved(b backend.Output) error
func (*Compositor) Outputs ¶
func (c *Compositor) Outputs() []*output.Output
func (*Compositor) OverviewListed ¶
func (c *Compositor) OverviewListed(o *output.Output) []wm.WindowID
func (*Compositor) OverviewProgress ¶
func (c *Compositor) OverviewProgress(now time.Duration) float64
func (*Compositor) OverviewSlots ¶
func (c *Compositor) OverviewSlots(o *output.Output) []image.Rectangle
func (*Compositor) OverviewThumbRedraws ¶
func (c *Compositor) OverviewThumbRedraws() uint64
func (*Compositor) OverviewThumbWindows ¶
func (c *Compositor) OverviewThumbWindows(o *output.Output, id wm.WorkspaceID) []wm.WindowID
func (*Compositor) OverviewThumbsStale ¶
func (c *Compositor) OverviewThumbsStale() bool
func (*Compositor) OverviewWindowRect ¶
func (*Compositor) Park ¶
func (c *Compositor) Park()
func (*Compositor) PickWindow ¶
func (c *Compositor) PickWindow(answer func(*wm.WindowID, error)) (func(), error)
func (*Compositor) PointerFocusChanged ¶
func (c *Compositor) PointerFocusChanged(*surface.Surface) error
func (*Compositor) PointerWarps ¶
func (c *Compositor) PointerWarps() uint64
func (*Compositor) PopupConstraint ¶
func (c *Compositor) PopupConstraint(root shell.PopupRoot) image.Rectangle
func (*Compositor) PopupMapped ¶
func (c *Compositor) PopupMapped(*shell.Popup) error
func (*Compositor) PopupUnmapped ¶
func (c *Compositor) PopupUnmapped(*shell.Popup) error
func (*Compositor) PopupsChanged ¶
func (c *Compositor) PopupsChanged() error
func (*Compositor) PowerChanged ¶
func (c *Compositor) PowerChanged()
func (*Compositor) PreferredDescription ¶
func (c *Compositor) PreferredDescription(s *surface.Surface) *colorspace.Description
func (*Compositor) PrepareDispatch ¶
func (c *Compositor) PrepareDispatch(a wm.Action) func() error
func (*Compositor) Presented ¶
func (c *Compositor) Presented(b backend.Output, p backend.Presentation) error
func (*Compositor) Reconfigure ¶
func (c *Compositor) Reconfigure(cfg Config) error
func (*Compositor) ReloadConfig ¶
func (c *Compositor) ReloadConfig()
func (*Compositor) ReloadPending ¶
func (c *Compositor) ReloadPending() bool
func (*Compositor) RemoveOutput ¶
func (c *Compositor) RemoveOutput(name string) error
func (*Compositor) Resume ¶
func (c *Compositor) Resume() error
func (*Compositor) Reuploads ¶
func (c *Compositor) Reuploads() uint64
func (*Compositor) RuleEvaluations ¶
func (c *Compositor) RuleEvaluations() int
func (*Compositor) ScaleXwayland ¶
func (c *Compositor) ScaleXwayland(clients func(*server.Client) bool) error
func (*Compositor) Seat ¶
func (c *Compositor) Seat() *seat.Seat
func (*Compositor) SelectionChanged ¶
func (*Compositor) SetDropTarget ¶
func (c *Compositor) SetDropTarget(t data.DropTarget)
func (*Compositor) SetOutputScale ¶
func (*Compositor) SetPowerSaver ¶
func (c *Compositor) SetPowerSaver(on bool)
func (*Compositor) SetSelection ¶
func (*Compositor) Settle ¶
func (c *Compositor) Settle() error
func (*Compositor) ShmSyncReads ¶
func (c *Compositor) ShmSyncReads() uint64
func (*Compositor) ShowConfigProblems ¶
func (c *Compositor) ShowConfigProblems(p ConfigProblems)
func (*Compositor) Snapshot ¶
func (c *Compositor) Snapshot() ipc.Snapshot
func (*Compositor) StateUpdates ¶
func (c *Compositor) StateUpdates() uint64
func (*Compositor) SurfaceScanout ¶
func (c *Compositor) SurfaceScanout(s *surface.Surface) gpu.ScanoutTarget
func (*Compositor) SwitcherFrames ¶
func (c *Compositor) SwitcherFrames() uint64
func (*Compositor) SwitcherOpen ¶
func (c *Compositor) SwitcherOpen() bool
func (*Compositor) SwitcherPreview ¶
func (*Compositor) SwitcherThumbRedraws ¶
func (c *Compositor) SwitcherThumbRedraws() uint64
func (*Compositor) SwitcherWindows ¶
func (c *Compositor) SwitcherWindows() []wm.WindowID
func (*Compositor) ToplevelChanged ¶
func (*Compositor) ToplevelInitialCommit ¶
func (c *Compositor) ToplevelInitialCommit(st *shell.Toplevel) error
func (*Compositor) ToplevelMapped ¶
func (c *Compositor) ToplevelMapped(t *shell.Toplevel) error
func (*Compositor) ToplevelRequest ¶
func (*Compositor) ToplevelUnmapped ¶
func (c *Compositor) ToplevelUnmapped(t *shell.Toplevel) error
func (*Compositor) Toplevels ¶
func (c *Compositor) Toplevels() []*shell.Toplevel
func (*Compositor) TraceFrames ¶
func (c *Compositor) TraceFrames(r *frametrace.Recorder)
func (*Compositor) UpgradeBlockers ¶
func (c *Compositor) UpgradeBlockers(dropX11 bool) []string
func (*Compositor) UserActive ¶
func (c *Compositor) UserActive(client *server.Client, serial uint32) bool
func (*Compositor) WM ¶
func (c *Compositor) WM() wm.State
func (*Compositor) WaitForExecs ¶
func (c *Compositor) WaitForExecs()
func (*Compositor) WatchSelection ¶
func (*Compositor) WatchWorkArea ¶
func (c *Compositor) WatchWorkArea(f func(image.Rectangle))
func (*Compositor) WorkArea ¶
func (c *Compositor) WorkArea() image.Rectangle
func (*Compositor) XDragTarget ¶
func (c *Compositor) XDragTarget() (*surface.Surface, float64, float64)
func (*Compositor) XWindowChanged ¶
func (c *Compositor) XWindowChanged(w *xwayland.Window) error
func (*Compositor) XWindowMapped ¶
func (c *Compositor) XWindowMapped(w *xwayland.Window) error
func (*Compositor) XWindowRequest ¶
func (*Compositor) XWindowResponsive ¶
func (c *Compositor) XWindowResponsive(w *xwayland.Window, responsive bool) error
func (*Compositor) XWindowSynced ¶
func (c *Compositor) XWindowSynced(*xwayland.Window) error
func (*Compositor) XWindowUnmapped ¶
func (c *Compositor) XWindowUnmapped(w *xwayland.Window) error
type Config ¶
type Config struct {
Seat seat.Config
Cursor CursorConfig
WM wm.Settings
Binds []binds.Bind
Report func(error)
ExecOutput ExecOutput
Decor Decor
Font *gtext.Typeface
Icons *icontheme.Theme
Rules []wm.Rule
Swallow Swallow
Outputs OutputRules
VirtualOutputs []VirtualOutput
ColorManagement bool
Tearing bool
Hooks Hooks
LidClosedAtStart bool
InheritTimeout time.Duration
HoldBound time.Duration
HiddenFrame time.Duration
PowerSaverRate int
HDRHold time.Duration
HoldOpening bool
Animations anim.Table
LayerRules []wm.LayerRule
WorkspaceRules []WorkspaceRule
Gestures Gestures
HotCorners HotCorners
Overview OverviewStyle
Switcher SwitcherStyle
Slower map[render.Speed]Effects
ClientHotkeys bool
CursorBehavior CursorBehavior
DeviceOutputs map[string]wm.OutputMatch
}
type ConfigProblems ¶
type CursorBehavior ¶
type CursorColorBypass ¶
type CursorColorBypass interface {
CursorSkipsCRTCColor() bool
}
type CursorConfig ¶
type Decor ¶
type Decor struct {
BorderWidth int
Rounding int
Opacity Opacity
Dim Dim
Shadow Shadow
Blur Blur
ActiveBorder, InactiveBorder render.Border
Tab TabStyle
Titlebar Titlebars
DragPreview DragPreview
}
func DefaultDecor ¶
func PlainDecor ¶
func PlainDecor() Decor
type DragPreview ¶
type DragSwitch ¶
type Gestures ¶
type Gestures struct {
Binds []binds.GestureBind
Touch []binds.GestureBind
Distance float64
EdgeWidth int
Natural bool
Devices map[string]bool
}
func DefaultGestures ¶
func DefaultGestures() Gestures
type HandoverState ¶
type HighResMode ¶
type HighResMode struct{}
type HotCornerSet ¶
type HotCornerSet [CornerCount]HotCorner
func (HotCornerSet) Resolve ¶
func (s HotCornerSet) Resolve(r binds.Resolver) (HotCornerSet, error)
type HotCorners ¶
type HotCorners struct {
Corners HotCornerSet
Pressure float64
Fullscreen bool
}
func DefaultHotCorners ¶
func DefaultHotCorners() HotCorners
type ModePolicy ¶
type ModePolicy interface {
// contains filtered or unexported methods
}
type OutputRule ¶
type OutputRule struct {
Match wm.OutputMatch
Mode ModePolicy
Position *image.Point
Scale output.Scale
Depth backend.BitDepth
VRR VRRPolicy
Disabled bool
Shader string
HDR HDRPolicy
SDRBrightness float64
HDRPeak float64
ICC *colorspace.Description
ICCPath string
HotCorners *HotCornerSet
Transform render.Transform
Mirror *wm.OutputMatch
Reserved Insets
}
type OutputRules ¶
type OutputRules struct {
Named []OutputRule
Fallback OutputRule
}
func (OutputRules) For ¶
func (rs OutputRules) For(b backend.Output) OutputRule
func (OutputRules) ResolveHotCorners ¶
func (rs OutputRules) ResolveHotCorners(r binds.Resolver) (OutputRules, error)
type OverviewStyle ¶
func DefaultOverviewStyle ¶
func DefaultOverviewStyle() OverviewStyle
type PreferredMode ¶
type PreferredMode struct{}
type StateColors ¶
type StateColors struct {
Active, Inactive, Urgent TabColors
}
type SwitcherStyle ¶
func DefaultSwitcherStyle ¶
func DefaultSwitcherStyle() SwitcherStyle
type TabStyle ¶
type TabStyle struct {
StateColors
Height, Padding, TextHeight, TextPadding int
}
type TitlebarButton ¶
type TitlebarButton uint8
const ( TitlebarMinimize TitlebarButton = iota + 1 TitlebarMaximize TitlebarClose )
type TitlebarDoubleClick ¶
type TitlebarDoubleClick uint8
const ( DoubleClickMaximize TitlebarDoubleClick = iota DoubleClickFloat )
type TitlebarLights ¶
type TitlebarSide ¶
type TitlebarSide uint8
const ( TitlebarLeft TitlebarSide = iota TitlebarRight )
type Titlebars ¶
type Titlebars struct {
StateColors
Lights TitlebarLights
Floating bool
Height int
Buttons [titlebarButtonKinds]TitlebarButton
Side TitlebarSide
DoubleClick TitlebarDoubleClick
}
type WorkspaceRule ¶
type WorkspaceRule struct {
wm.WorkspaceRule
Bind *wm.OutputMatch
}
Source Files
¶
- activation.go
- aim.go
- arrange.go
- bell.go
- binds.go
- blur.go
- capture.go
- captureblock.go
- capturepresent.go
- casttarget.go
- closing.go
- color.go
- compositor.go
- constraints.go
- content.go
- cursor.go
- cursorpresence.go
- damage.go
- data.go
- debug.go
- decor.go
- dispatch.go
- dragpreview.go
- dragswitch.go
- edges.go
- entered.go
- escape.go
- focus.go
- focusfade.go
- focusgrab.go
- foreign.go
- gesture.go
- glass.go
- globalshortcuts.go
- gpureset.go
- handover.go
- hdrcursor.go
- hdrfullscreen.go
- hotcorners.go
- hotkeys.go
- imagecapture.go
- incomplete.go
- inherit.go
- input.go
- inputcapture.go
- inputmethod.go
- interaction.go
- ipc.go
- layeranim.go
- layerprops.go
- layers.go
- lid.go
- lock.go
- minimize.go
- mirror.go
- mru.go
- notice.go
- outputs.go
- overlay.go
- overview.go
- overviewdraw.go
- overviewinput.go
- pacing.go
- pick.go
- pointerwarp.go
- popups.go
- power.go
- powersaver.go
- profile.go
- props.go
- readback.go
- sandbox.go
- scanout.go
- scene.go
- scratchpad.go
- screencopy.go
- screenshader.go
- scroll.go
- shortcuts.go
- showdesktop.go
- slowkeys.go
- swallow.go
- switcher.go
- tablet.go
- textures.go
- throttle.go
- titlebar.go
- toplevel.go
- topleveldrag.go
- touchgesture.go
- transaction.go
- transform.go
- virtual.go
- virtualoutput.go
- virtualtouch.go
- vrr.go
- waits.go
- windows.go
- wobble.go
- workspaces.go
- workspaceswitch.go
- wsrules.go
- xwayland.go
- zoom.go
Click to show internal directories.
Click to hide internal directories.