Go to index / Go to protocols

hyprland_ctm_control_v1 ↗

controlling outputs' color transform matrix

This protocol allows a client to control outputs' color transform matrix (CTM).

This protocol is privileged and should not be exposed to unprivileged clients.

hyprland_ctm_control_v1
hyprland_ctm_control_manager_v1

Version 2
Compositor Support
Version 2
hyprland 0.52.1

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.

hyprland_ctm_control_manager_v1
request set_ctm_for_output(
    output: object<wl_output>,
    mat0: fixed,
    mat1: fixed,
    mat2: fixed,
    mat3: fixed,
    mat4: fixed,
    mat5: fixed,
    mat6: fixed,
    mat7: fixed,
    mat8: fixed,
)

    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.

    hyprland_ctm_control_manager_v1
    request commit()

      commit the pending state

      Commits the pending state(s) set by set_ctm_for_output.

      hyprland_ctm_control_manager_v1
      request destroy()
      Destructor

        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.

        hyprland_ctm_control_manager_v1
        enum error {
            invalid_matrix = 0,
        }
        • invalid_matrix — the matrix values are invalid.
        hyprland_ctm_control_manager_v1
        event blocked()

          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.