Summary: | kwin scripting client signal argument undefined | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Peifeng Yu <pfyu817> |
Component: | scripting | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | minor | CC: | natalie_clarius, pfyu817 |
Priority: | NOR | ||
Version: | 5.23.5 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Peifeng Yu
2022-01-26 04:11:09 UTC
Most likely, QJSEngine doesn't know about KWin::Deleted so it refuses passing both signal arguments. `Deleted` is an implementation detail that generally should not be exposed to scripts. Not sure what to do about it other than ask script developers not to use the Toplevel argument and instead do something like client.windowClosed.connect(() => console.log(client.caption, "has been closed")); That's indeed what I'm doing in my script to work around this. Maybe creating a wrapper class to expose X11Clients to scripts is a better way to move forward in the long term. This bug was reported against an outdated version of KWin. We have made many changes since the. If the issue persists in newer versions can you reopen the bug report updating the version number. |