add wayland debug messages

pull/2/head
Michail Vourlakos 7 years ago
parent 0a1488b643
commit b4b68e5bb1

@ -400,6 +400,7 @@ bool DockConfigView::event(QEvent *e)
if (m_shellSurface) {
delete m_shellSurface;
m_shellSurface = nullptr;
qDebug() << "WAYLAND config window surface was deleted...";
PanelShadows::self()->removeWindow(this);
}

@ -309,6 +309,7 @@ bool DockSecConfigView::event(QEvent *e)
if (m_shellSurface) {
delete m_shellSurface;
m_shellSurface = nullptr;
qDebug() << "WAYLAND secondary config window surface was deleted...";
PanelShadows::self()->removeWindow(this);
}

@ -141,6 +141,7 @@ DockView::DockView(Plasma::Corona *corona, QScreen *targetScreen, bool dockWindo
DockView::~DockView()
{
m_inDelete = true;
disconnect(corona(), &Plasma::Corona::availableScreenRectChanged, this, &DockView::availableScreenRectChanged);
disconnect(containment(), SIGNAL(statusChanged(Plasma::Types::ItemStatus)), this, SLOT(statusChanged(Plasma::Types::ItemStatus)));
@ -360,7 +361,7 @@ void DockView::setupWaylandIntegration()
return;
m_shellSurface = interface->createSurface(s, this);
qDebug() << "wayland dock window surface was created...";
qDebug() << "WAYLAND dock window surface was created...";
m_shellSurface->setSkipTaskbar(true);
m_shellSurface->setRole(PlasmaShellSurface::Role::Panel);
@ -1675,7 +1676,7 @@ bool DockView::event(QEvent *e)
if (m_shellSurface) {
delete m_shellSurface;
m_shellSurface = nullptr;
qDebug() << "wayland dock window surface was deleted...";
qDebug() << "WAYLAND dock window surface was deleted...";
PanelShadows::self()->removeWindow(this);
}

@ -228,13 +228,6 @@ void DockCorona::setupWaylandIntegration()
m_waylandDockCorona = registry->createPlasmaShell(name, version, this);
});
/* connect(qApp, &QCoreApplication::aboutToQuit, this, [this, registry]() {
if (m_waylandDockCorona)
m_waylandDockCorona->release();
registry->release();
});*/
registry->setup();
connection->roundtrip();
}

Loading…
Cancel
Save