#1001252 devilspie2: Crashes when encountering X errors (e.g. undecorate after exit)

Package:
devilspie2
Source:
devilspie2
Description:
Lua-based window matching utility
Submitter:
Matthew Horan
Date:
2024-10-20 11:51:01 UTC
Severity:
normal
Tags:
#1001252#5
Date:
2021-12-07 00:40:58 UTC
From:
To:
Dear Maintainer,

The latest released version of devilspie2 calls a deprecated (and
seemingly non-functional) function to trap X errors instead of
terminating the caller. This means that any scripts that e.g.
undecorate windows after exit will cause devilspie2 to crash.

This has been fixed on the unreleased master branch upstream but no new
version has been released. Applying the following patch to this package
resolves the crash for me:
https://github.com/dsalt/devilspie2/commit/350dfc480d254c48aefcfaf6136d3e2cc4a0d75b

Note that there is another related fix to get_window_is_decorated on the
master branch:
https://github.com/dsalt/devilspie2/commit/547c31c63c63dffe03effab0570ecd99ecc8d859.

It would be great to see these patches applied to the Debian package and
ideally backported to bullseye.

Thanks,
Matt