mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 05:12:25 +08:00
fix crash on 1 wp
This commit is contained in:
parent
ea15895916
commit
a782fdd1f2
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user