panel kitten: on Wayland, use app-id for the LayerShellV1 namespace parameter

The Wayland LayerShellV1 protocol doesn't allow setting window class/name/role/type/appId.
Instead, it has a `namespace` parameter that we currently hardcode to `kitty`. It
seems suitable to use app-id for this parameter.

Example use case:
kwin use the `namespace` parameter and an undocumented mapping to set window type for
Layer Shell windows. E.g., "dock" maps to NET:Dock. So if we set `app_id dock` in
quick_access_terminal.conf, the panel would be considered a dock, and won't have the
normal scale in/out animation on shown/hidden.
This commit is contained in:
Jin Liu
2025-05-15 23:55:48 +08:00
parent 9a543c2370
commit 4c6c38929b
3 changed files with 3 additions and 3 deletions

View File

@@ -375,7 +375,7 @@ def kitty_options_spec() -> str:
dest=cls
default={appname}
condition=not is_macos
Set the :italic:`application id` on Wayland. On X11 set the class part of the :italic:`WM_CLASS` window property.
On Wayland set the :italic:`namespaces` parameter of the LayerShellV1 surface. On X11 set the class part of the :italic:`WM_CLASS` window property.
--name --os-window-tag