xwayland_shell

package
v0.0.0-...-1fbd8b4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XwaylandShell

type XwaylandShell struct {
	client.BaseProxy
}

XwaylandShell : context object for Xwayland shell

xwayland_shell_v1 is a singleton global object that provides the ability to create a xwayland_surface_v1 object for a given wl_surface.

This interface is intended to be bound by the Xwayland server.

A compositor must not allow clients other than Xwayland to bind to this interface. A compositor should hide this global from other clients' wl_registry. A client the compositor does not consider to be an Xwayland server attempting to bind this interface will result in an implementation-defined error.

An Xwayland server that has bound this interface must not set the `WL_SURFACE_ID` atom on a window.

func NewXwaylandShell

func NewXwaylandShell(ctx *client.Context) *XwaylandShell

NewXwaylandShell : context object for Xwayland shell

xwayland_shell_v1 is a singleton global object that provides the ability to create a xwayland_surface_v1 object for a given wl_surface.

This interface is intended to be bound by the Xwayland server.

A compositor must not allow clients other than Xwayland to bind to this interface. A compositor should hide this global from other clients' wl_registry. A client the compositor does not consider to be an Xwayland server attempting to bind this interface will result in an implementation-defined error.

An Xwayland server that has bound this interface must not set the `WL_SURFACE_ID` atom on a window.

func (*XwaylandShell) Destroy

func (i *XwaylandShell) Destroy() error

Destroy : destroy the Xwayland shell object

Destroy the xwayland_shell_v1 object.

The child objects created via this interface are unaffected.

func (*XwaylandShell) GetXwaylandSurface

func (i *XwaylandShell) GetXwaylandSurface(surface *client.Surface) (*XwaylandSurface, error)

GetXwaylandSurface : assign the xwayland_surface surface role

Create an xwayland_surface_v1 interface for a given wl_surface object and gives it the xwayland_surface role.

It is illegal to create an xwayland_surface_v1 for a wl_surface which already has an assigned role and this will result in the `role` protocol error.

See the documentation of xwayland_surface_v1 for more details about what an xwayland_surface_v1 is and how it is used.

type XwaylandShellError

type XwaylandShellError uint32
const (
	// XwaylandShellErrorRole : given wl_surface has another role
	XwaylandShellErrorRole XwaylandShellError = 0
)

XwaylandShellError :

func (XwaylandShellError) Name

func (e XwaylandShellError) Name() string

func (XwaylandShellError) String

func (e XwaylandShellError) String() string

func (XwaylandShellError) Value

func (e XwaylandShellError) Value() string

type XwaylandSurface

type XwaylandSurface struct {
	client.BaseProxy
}

XwaylandSurface : interface for associating Xwayland windows to wl_surfaces

An Xwayland surface is a surface managed by an Xwayland server. It is used for associating surfaces to Xwayland windows.

The Xwayland server associated with actions in this interface is determined by the Wayland client making the request.

The client must call wl_surface.commit on the corresponding wl_surface for the xwayland_surface_v1 state to take effect.

func NewXwaylandSurface

func NewXwaylandSurface(ctx *client.Context) *XwaylandSurface

NewXwaylandSurface : interface for associating Xwayland windows to wl_surfaces

An Xwayland surface is a surface managed by an Xwayland server. It is used for associating surfaces to Xwayland windows.

The Xwayland server associated with actions in this interface is determined by the Wayland client making the request.

The client must call wl_surface.commit on the corresponding wl_surface for the xwayland_surface_v1 state to take effect.

func (*XwaylandSurface) Destroy

func (i *XwaylandSurface) Destroy() error

Destroy : destroy the Xwayland surface object

Destroy the xwayland_surface_v1 object.

Any already existing associations are unaffected by this action.

func (*XwaylandSurface) SetSerial

func (i *XwaylandSurface) SetSerial(serialLo, serialHi uint32) error

SetSerial : associates a Xwayland window to a wl_surface

Associates an Xwayland window to a wl_surface. The association state is double-buffered, see wl_surface.commit.

The `serial_lo` and `serial_hi` parameters specify a non-zero monotonic serial number which is entirely unique and provided by the Xwayland server equal to the serial value provided by a client message with a message type of the `WL_SURFACE_SERIAL` atom on the X11 window for this surface to be associated to.

The serial value in the `WL_SURFACE_SERIAL` client message is specified as having the lo-bits specified in `l[0]` and the hi-bits specified in `l[1]`.

If the serial value provided by `serial_lo` and `serial_hi` is not valid, the `invalid_serial` protocol error will be raised.

An X11 window may be associated with multiple surfaces throughout its lifespan. (eg. unmapping and remapping a window).

For each wl_surface, this state must not be committed more than once, otherwise the `already_associated` protocol error will be raised.

serialLo: The lower 32-bits of the serial number associated with the X11 window
serialHi: The upper 32-bits of the serial number associated with the X11 window

type XwaylandSurfaceError

type XwaylandSurfaceError uint32
const (
	// XwaylandSurfaceErrorAlreadyAssociated : given wl_surface is already associated with an X11 window
	XwaylandSurfaceErrorAlreadyAssociated XwaylandSurfaceError = 0
	// XwaylandSurfaceErrorInvalidSerial : serial was not valid
	XwaylandSurfaceErrorInvalidSerial XwaylandSurfaceError = 1
)

XwaylandSurfaceError :

func (XwaylandSurfaceError) Name

func (e XwaylandSurfaceError) Name() string

func (XwaylandSurfaceError) String

func (e XwaylandSurfaceError) String() string

func (XwaylandSurfaceError) Value

func (e XwaylandSurfaceError) Value() string

Jump to

Keyboard shortcuts

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