From 7409bd4cc0151963667a12f8c66026874177991d Mon Sep 17 00:00:00 2001 From: Aleix Pol Gonzalez Date: Tue, 24 Sep 2024 14:45:35 +0200 Subject: [PATCH] Make sure that the layer property gets initialised Much like with the rest of the properties, we should set whichever value was in the interface and then subscribe to changes in the property. Otherwise, the layer doesn't get forwarded to the surface if the value was set before its initialisation. Signed-off-by: Victoria Fischer --- src/qwaylandlayersurface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index c03de35..7c09b74 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -37,6 +37,7 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShellIntegration *shell, } } init(shell->get_layer_surface(window->waylandSurface()->object(), output, m_interface->layer(), m_interface->scope())); + setLayer(m_interface->layer()); connect(m_interface, &Window::layerChanged, this, [this]() { setLayer(m_interface->layer()); });