autotests: Fix testScreens
Currently, the test doesn't pass due to Xwayland encountering a protocol error. That protocol error occurs because the xdg-output is destroyed before the wl_output. This change moves the ownership of the xdg-output to wl-output so they are destroyed together.
This commit is contained in:
parent
8d08306c48
commit
356fff9920
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ WaylandOutput::WaylandOutput(AbstractWaylandOutput *output, QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_platformOutput(output)
|
, m_platformOutput(output)
|
||||||
, m_waylandOutput(new KWaylandServer::OutputInterface(waylandServer()->display()))
|
, m_waylandOutput(new KWaylandServer::OutputInterface(waylandServer()->display()))
|
||||||
, m_xdgOutputV1(waylandServer()->xdgOutputManagerV1()->createXdgOutput(m_waylandOutput.data(), this))
|
, m_xdgOutputV1(waylandServer()->xdgOutputManagerV1()->createXdgOutput(m_waylandOutput.data(), m_waylandOutput.data()))
|
||||||
{
|
{
|
||||||
const QRect geometry = m_platformOutput->geometry();
|
const QRect geometry = m_platformOutput->geometry();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue