Commit c1bd0b59 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent 80a5c50c
Pipeline #55549 passed with stage
in 7 minutes and 5 seconds
......@@ -114,7 +114,10 @@ OutputDeviceInterface::OutputDeviceInterface(Display *display, QObject *parent)
connect(this, &OutputDeviceInterface::colorCurvesChanged, this, [this] { d->updateColorCurves(); });
}
OutputDeviceInterface::~OutputDeviceInterface() = default;
OutputDeviceInterface::~OutputDeviceInterface()
{
d->globalRemove();
}
QSize OutputDeviceInterface::pixelSize() const
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment