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:
parent
b27150387c
commit
70daa07f27
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue