org.kde.KWin: Expose a window's UUID
Exposes a Window's UUID so that it can be used with other APIs like window management or screencasting.
This commit is contained in:
parent
fdd585e44c
commit
a5aaa9e3c4
2 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,7 @@ void TestDbusInterface::testGetWindowInfoXdgShellClient()
|
|||
QVERIFY(reply.isValid());
|
||||
QVERIFY(!reply.isError());
|
||||
auto windowData = reply.value();
|
||||
windowData.remove(QStringLiteral("uuid"));
|
||||
QCOMPARE(windowData, expectedData);
|
||||
|
||||
auto verifyProperty = [window](const QString &name) {
|
||||
|
@ -293,6 +294,7 @@ void TestDbusInterface::testGetWindowInfoX11Client()
|
|||
// not testing clientmachine as that is system dependent due to that also not testing localhost
|
||||
windowData.remove(QStringLiteral("clientMachine"));
|
||||
windowData.remove(QStringLiteral("localhost"));
|
||||
windowData.remove(QStringLiteral("uuid"));
|
||||
QCOMPARE(windowData, expectedData);
|
||||
|
||||
auto verifyProperty = [window](const QString &name) {
|
||||
|
|
|
@ -177,6 +177,7 @@ QVariantMap clientToVariantMap(const Window *c)
|
|||
{QStringLiteral("skipSwitcher"), c->skipSwitcher()},
|
||||
{QStringLiteral("maximizeHorizontal"), c->maximizeMode() & MaximizeHorizontal},
|
||||
{QStringLiteral("maximizeVertical"), c->maximizeMode() & MaximizeVertical},
|
||||
{QStringLiteral("uuid"), c->internalId().toString()},
|
||||
#if KWIN_BUILD_ACTIVITIES
|
||||
{QStringLiteral("activities"), c->activities()},
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue