From 5d775a4e28f045e7d4294833e61a88b88d9e4e96 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Mon, 21 Jan 2019 23:24:24 +0200 Subject: [PATCH] [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 --- src/wayland/autotests/client/test_wayland_shell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wayland/autotests/client/test_wayland_shell.cpp b/src/wayland/autotests/client/test_wayland_shell.cpp index 96929906a1..972254e0d5 100644 --- a/src/wayland/autotests/client/test_wayland_shell.cpp +++ b/src/wayland/autotests/client/test_wayland_shell.cpp @@ -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)); }