layering

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package layering maps a configured layer onto the layer-shell stack (wayle-shell-core helpers/layer_shell.rs apply_layer): every shell surface with a layer key goes through For, so general.tearing-mode demotes them all the same way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func For

func For(general config.GeneralConfig, layer config.Layer) app.Layer

For is the stack layer a surface configured with layer takes, with tearing mode applied (overlay demoted to top); an unknown layer is top.

func Output

func Output(outputs []*app.Output, monitor Monitor) *app.Output

Output picks a surface's monitor (layer_shell.rs apply_primary_monitor, apply_monitor_by_connector): "primary" is the first output, a connector its output, falling back to the first when that connector is not connected. Nil only when there are no outputs.

Types

type Monitor

type Monitor interface {
	IsPrimary() bool
	Connector() string
}

Monitor is a surface's configured target: "primary" or a connector (config.OsdMonitor, config.PopupMonitor).

Jump to

Keyboard shortcuts

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