Go to index / Go to protocols

xdg_toplevel_tag_v1 ↗

xdg_toplevel_tag_v1
xdg_toplevel_tag_manager_v1

Version 1
Compositor Support
Version 1
hyprland 0.52.1
jay 1.14.0
kwin 6.7
muffin 6.7.4
mutter 51

protocol for setting toplevel tags

In order to make some window properties like position, size, "always on top" or user defined rules for window behavior persistent, the compositor needs some way to identify windows even after the application has been restarted. This protocol allows clients to make this possible by setting a tag for toplevels.

Warning! The protocol described in this file is currently in the testing phase. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.

xdg_toplevel_tag_manager_v1
request destroy()
Destructor

    destroy toplevel tag object

    Destroy this toplevel tag manager object. This request has no other effects.

    xdg_toplevel_tag_manager_v1
    request set_toplevel_tag(
        toplevel: object<xdg_toplevel>,
        tag: string,
    )
    • tag — untranslated tag

    set tag

    Set a tag for a toplevel. The tag may be shown to the user in UI, so it's preferable for it to be human readable, but it must be suitable for configuration files and should not be translated. Suitable tags would for example be "main window", "settings", "e-mail composer" or similar.

    The tag does not need to be unique across applications, and the client may set the same tag for multiple windows, for example if the user has opened the same UI twice. How the potentially resulting conflicts are handled is compositor policy.

    The client should set the tag as part of the initial commit on the associated toplevel, but it may set it at any time afterwards as well, for example if the purpose of the toplevel changes.

    xdg_toplevel_tag_manager_v1
    request set_toplevel_description(
        toplevel: object<xdg_toplevel>,
        description: string,
    )
    • description — translated description

    set description

    Set a description for a toplevel. This description may be shown to the user in UI or read by a screen reader for accessibility purposes, and should be translated. It is recommended to make the description the translation of the tag.

    The client should set the description as part of the initial commit on the associated toplevel, but it may set it at any time afterwards as well, for example if the purpose of the toplevel changes.