Destroy output device globals with a delay

When hot plugging outputs, we may hit the wl_global race condition.

We need to delay the destruction of output device globals to prevent
hitting that race condition.
This commit is contained in:
Vlad Zahorodnii 2021-03-25 17:19:11 +02:00
parent b27150387c
commit 70daa07f27

View file

@ -114,7 +114,10 @@ OutputDeviceInterface::OutputDeviceInterface(Display *display, QObject *parent)
connect(this, &OutputDeviceInterface::colorCurvesChanged, this, [this] { d->updateColorCurves(); }); connect(this, &OutputDeviceInterface::colorCurvesChanged, this, [this] { d->updateColorCurves(); });
} }
OutputDeviceInterface::~OutputDeviceInterface() = default; OutputDeviceInterface::~OutputDeviceInterface()
{
d->globalRemove();
}
QSize OutputDeviceInterface::pixelSize() const QSize OutputDeviceInterface::pixelSize() const
{ {