Skip to content

scripting: Fix registration of some types

We need to register data types such as QVector<KWin::VirtualDesktop *> both for QML and JavaScript scripts.

If you have no JavaScript scripts enabled, those container types won't be registered and QML will fail to read properties such as Window.desktops, which can result in already visible windows animating opacity from 0 to 1 when opening overview effect.

To fix that, register all accessible data types in scripting apis in Scripting::init().

Merge request reports