Skip to content

hyprland_ctm_control_manager_v1¤

wayland.hyprland_ctm_control_manager_v1 ¤

Manager to control ctms

This object is a manager which offers requests to control CTMs.

If any changes are done, once this object is destroyed, CTMs are reset back to an identity matrix.

Methods:

error ¤

events

blocked ¤

blocked() -> None

This event is sent if another manager was bound by any client at the time the current manager was bound. Any set_ctm_for_output requests from a blocked manager will be silently ignored by the compositor.

The client should destroy the manager after receiving this event.

set_ctm_for_output ¤

set_ctm_for_output(
    output: wl_output,
    mat0: float,
    mat1: float,
    mat2: float,
    mat3: float,
    mat4: float,
    mat5: float,
    mat6: float,
    mat7: float,
    mat8: float,
) -> None

Set the ctm of an output

Set a CTM for a wl_output.

This state is not applied immediately; clients must call .commit to apply any pending changes.

The provided values describe a 3x3 Row-Major CTM with values in the range of [0, ∞)

Passing values outside of the range will raise an invalid_matrix error.

The default value of the CTM is an identity matrix.

If an output doesn't get a CTM set with set_ctm_for_output and commit is called, that output will get its CTM reset to an identity matrix.

commit ¤

commit() -> None

Commit the pending state

Commits the pending state(s) set by set_ctm_for_output.

destroy ¤

destroy() -> None

Destroy the manager

All objects created by the manager will still remain valid, until their appropriate destroy request has been called.

The CTMs of all outputs will be reset to an identity matrix.

on_blocked ¤

on_blocked() -> None

This event is sent if another manager was bound by any client.

Override to handle wayland.hyprland_ctm_control_manager_v1.events.blocked.