Summary: | Some scripts stopped working | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Iyán Méndez Veiga <me> |
Component: | scripts | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate |
Priority: | HI | Keywords: | regression |
Version: | 5.25.90 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=459237 | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/0f668b05c85046fd51a41d5febc611221f4dd00a | Version Fixed In: | 5.26 |
Sentry Crash Report: |
Description
Iyán Méndez Veiga
2022-09-19 07:20:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2974 Git commit 4696bdaa05f3990b3e70fa276c565ea623df1d5c by Vlad Zahorodnii. Committed on 19/09/2022 at 13:58. Pushed by vladz into branch 'master'. scripting: Add js object <-> QRectF/QSizeF/QPointF conversion helpers The js code contains code such as window.frameGeometry = {x: 42, y: 42, width: 100, height: 50}; However, QJSEngine doesn't know how to convert js object to QRect. For that purpose, we need to register conversion functions. So far, we kept registering converter functions only for integer based geometry types, i.e. QRect, QSize and QPoint. In 5.26, Window was ported to QRectF, QSizeF and QPointF, but the corresponding conversion helpers were not added. M +31 -0 src/scripting/scripting.cpp https://invent.kde.org/plasma/kwin/commit/4696bdaa05f3990b3e70fa276c565ea623df1d5c Git commit 0f668b05c85046fd51a41d5febc611221f4dd00a by Vlad Zahorodnii. Committed on 19/09/2022 at 15:01. Pushed by vladz into branch 'Plasma/5.26'. scripting: Add js object <-> QRectF/QSizeF/QPointF conversion helpers The js code contains code such as window.frameGeometry = {x: 42, y: 42, width: 100, height: 50}; However, QJSEngine doesn't know how to convert js object to QRect. For that purpose, we need to register conversion functions. So far, we kept registering converter functions only for integer based geometry types, i.e. QRect, QSize and QPoint. In 5.26, Window was ported to QRectF, QSizeF and QPointF, but the corresponding conversion helpers were not added. (cherry picked from commit 4696bdaa05f3990b3e70fa276c565ea623df1d5c) M +31 -0 src/scripting/scripting.cpp https://invent.kde.org/plasma/kwin/commit/0f668b05c85046fd51a41d5febc611221f4dd00a The issue with the scripts is fixed now with the patch, but I still see some errors with journalctl. Maybe is a different thing, but I will copy here just in case. kwin_wayland[903]: kwin_core: precision lost! floating value sent to X 1.25 kwin_wayland[903]: kwin_core: precision lost! floating value sent to X 1.25 kwin_wayland[903]: kwin_core: precision lost! floating value sent to X -1.25 kwin_wayland[903]: kwin_core: precision lost! floating value sent to X -1.25 kwin_wayland[903]: kwin_core: precision lost! floating value sent to X 1392.5 kwin_wayland[903]: kwin_core: precision lost! floating value sent to X 1392.5 |