[client] Wrap wl_shell_surface_set_{class,title}
Summary: We have to wrap these two requests just for convenience. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D18440
This commit is contained in:
parent
613aeb79c5
commit
5d775a4e28
1 changed files with 3 additions and 3 deletions
|
@ -606,7 +606,7 @@ void TestWaylandShell::testTitle()
|
|||
QString testTitle = QStringLiteral("fooBar");
|
||||
QVERIFY(serverSurface->title().isNull());
|
||||
|
||||
wl_shell_surface_set_title(*(const KWayland::Client::ShellSurface *)surface, testTitle.toUtf8().constData());
|
||||
surface->setTitle(testTitle);
|
||||
QVERIFY(titleSpy.wait());
|
||||
QCOMPARE(serverSurface->title(), testTitle);
|
||||
QCOMPARE(titleSpy.first().first().toString(), testTitle);
|
||||
|
@ -631,13 +631,13 @@ void TestWaylandShell::testWindowClass()
|
|||
QByteArray testClass = QByteArrayLiteral("fooBar");
|
||||
QVERIFY(serverSurface->windowClass().isNull());
|
||||
|
||||
wl_shell_surface_set_class(*surface, testClass.constData());
|
||||
surface->setWindowClass(testClass);
|
||||
QVERIFY(windowClassSpy.wait());
|
||||
QCOMPARE(serverSurface->windowClass(), testClass);
|
||||
QCOMPARE(windowClassSpy.first().first().toByteArray(), testClass);
|
||||
|
||||
// try setting it to same should not trigger the signal
|
||||
wl_shell_surface_set_class(*surface, testClass.constData());
|
||||
surface->setWindowClass(testClass);
|
||||
QVERIFY(!windowClassSpy.wait(100));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue