Commit 66b0f5b8 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Allow accepting client connections on multiple sockets

libwayland-server allows the wl_display accept client connections on
more than one socket. We currently don't listen on multiple sockets,
but it would be nice if Display supported such operation mode.
parent 96d562dc
Pipeline #43479 passed with stage
in 6 minutes and 9 seconds
......@@ -53,7 +53,7 @@ void TestCompositor::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -67,7 +67,7 @@ void TestDataDevice::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -49,7 +49,7 @@ void TestDataSource::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -67,7 +67,7 @@ void TestDragAndDrop::init()
using namespace KWayland::Client;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -50,7 +50,7 @@ void ErrorTest::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -57,7 +57,7 @@ void FakeInputTest::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -49,7 +49,7 @@ void IdleTest::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -77,7 +77,7 @@ void TestVirtualDesktop::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -96,7 +96,7 @@ void PlasmaWindowModelTest::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -60,7 +60,7 @@ void TestPlasmaShell::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -63,7 +63,7 @@ void TestPointerConstraints::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -63,7 +63,7 @@ void SelectionTest::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -58,7 +58,7 @@ void TestServerSideDecoration::init()
using namespace KWayland::Client;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -61,7 +61,7 @@ void TestServerSideDecorationPalette::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -52,7 +52,7 @@ void ShadowTest::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -60,7 +60,7 @@ void TestShmPool::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -71,7 +71,7 @@ void TextInputTest::init()
{
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
m_display->createShm();
......
......@@ -64,7 +64,7 @@ void TestAppmenu::init()
qRegisterMetaType<AppMenuInterface::InterfaceAddress>();
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -61,7 +61,7 @@ void TestBlur::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
......@@ -64,7 +64,7 @@ void TestContrast::init()
using namespace KWaylandServer;
delete m_display;
m_display = new Display(this);
m_display->setSocketName(s_socketName);
m_display->addSocketName(s_socketName);
m_display->start();
QVERIFY(m_display->isRunning());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment