Commit 8aa2d95f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

osd: Specify layer shell namespace

Specify "on-screen-display" namespace so kwin can properly decide
whether to animate the osd.


(cherry picked from commit 60df122e)
parent 2ae645bd
Pipeline #247808 passed with stage
in 1 minute and 38 seconds
......@@ -60,6 +60,7 @@ void Osd::showActionSelector()
if (KWindowSystem::isPlatformWayland()) {
auto layerWindow = LayerShellQt::Window::get(m_osdActionSelector.get());
layerWindow->setScope(QStringLiteral("on-screen-display"));
layerWindow->setLayer(LayerShellQt::Window::LayerOverlay);
layerWindow->setAnchors({});
layerWindow->setDesiredOutput(qGuiApp->screenAt(m_output->pos()));
......
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