compositor_wayland: handle the cursor layer returning std::nullopt correctly

This commit is contained in:
Xaver Hugl 2023-10-06 22:58:00 +02:00
parent 7ad1c163a3
commit 4582276cf8

View file

@ -311,6 +311,8 @@ void WaylandCompositor::addOutput(Output *output)
if (!outputLayer->endFrame(infiniteRegion(), infiniteRegion())) {
return false;
}
} else {
return false;
}
outputLayer->setEnabled(true);
return output->updateCursorLayer();