term: limit app-id to 2048 characters

Unsure if the protocol imposes a limit (haven't found any
documentation), or if the issue is in the libwayland implementation,
or wlroots (triggers in at least sway+river).

The issue is that setting a too long app-id causes the
compositor (river at least) to peg the CPU at 100%, and stop sending
e.g. frame callbacks to foot.

Closes #1897
This commit is contained in:
Daniel Eklöf 2025-01-02 08:58:48 +01:00
parent f8ebe985a8
commit c7ab7b3539
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 22 additions and 0 deletions

View file

@ -59,6 +59,13 @@
## Unreleased
### Added
### Changed
* Runtime changes to the app-id (OSC-176) now limits the app-id string
to 2048 characters ([#1897][1897]).
[1897]: https://codeberg.org/dnkl/foot/issues/1897
### Deprecated
### Removed
### Fixed