fix crash on 1 wp

This commit is contained in:
vaxerski 2023-04-21 16:11:48 +01:00
parent ea15895916
commit a782fdd1f2

View File

@ -459,6 +459,9 @@ void CWaylandOpenGLDriver::makeCurrent(const std::string& outputName) const {
CLayerSurface* CWaylandOpenGLDriver::surfaceToLS(wl_surface* surface) {
for (auto& o : m_outputs) {
if (!o->layerSurface.get())
continue;
if (o->layerSurface->surface == surface)
return o->layerSurface.get();
}