Diffusion KWin a738ecce85c1

[scripting] Provide conversion functions for AbstractClient

Authored by zzag on Oct 25 2019, 11:21 AM.

Description

[scripting] Provide conversion functions for AbstractClient

Summary:
If no conversion functions are provided for a QObject-subclass, then
QScriptEngine will use QScriptEngine::newQObject() method without any
special options to convert an instance of that QObject-subclass to a
QScriptValue. However, it's very important that every client object is
wrapped with PreferExistingWrapperObject option. We need that option
because a script may set a property on a client object and that property
must remain until it's deleted by the script.

BUG: 413044
FIXED-IN: 5.17.2

Test Plan: New test.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D24944

Details

Committed
zzagOct 25 2019, 2:39 PM
Reviewer
KWin
Differential Revision
D24944: [scripting] Provide conversion functions for AbstractClient
Parents
R108:8e176c8b0d97: Don't use MESA_EGL_NO_X11_HEADERS
Branches
Unknown
Tags
Unknown