Make use of the new QPlatformIntegration::destroyScreen
Task-number: QTBUG-41141 Change-Id: I0bd789cc1090f7e0e7615b47c33a4e4179677398 Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
parent
5715d858a0
commit
846324db5a
@ -168,7 +168,9 @@ QWaylandDisplay::QWaylandDisplay(QWaylandIntegration *waylandIntegration)
|
|||||||
|
|
||||||
QWaylandDisplay::~QWaylandDisplay(void)
|
QWaylandDisplay::~QWaylandDisplay(void)
|
||||||
{
|
{
|
||||||
qDeleteAll(mScreens);
|
foreach (QWaylandScreen *screen, mScreens) {
|
||||||
|
mWaylandIntegration->destroyScreen(screen);
|
||||||
|
}
|
||||||
mScreens.clear();
|
mScreens.clear();
|
||||||
delete mDndSelectionHandler.take();
|
delete mDndSelectionHandler.take();
|
||||||
mEventThread->quit();
|
mEventThread->quit();
|
||||||
@ -291,8 +293,8 @@ void QWaylandDisplay::registry_global_remove(uint32_t id)
|
|||||||
if (global.interface == QStringLiteral("wl_output")) {
|
if (global.interface == QStringLiteral("wl_output")) {
|
||||||
foreach (QWaylandScreen *screen, mScreens) {
|
foreach (QWaylandScreen *screen, mScreens) {
|
||||||
if (screen->outputId() == id) {
|
if (screen->outputId() == id) {
|
||||||
delete screen;
|
|
||||||
mScreens.removeOne(screen);
|
mScreens.removeOne(screen);
|
||||||
|
mWaylandIntegration->destroyScreen(screen);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user