Ensure that splash screen and logout greeter fill the entire screen

Since both the splash screen and the logout greeter have an exclusive
zone of 0, they may be resized to accommodate for other layer shell
surfaces, for example panels.

We need to set an exclusive zone of -1 to ensure that the splash screen
and the logout greeter fill the entire screen.
wilder-5.22
Vlad Zahorodnii 5 years ago
parent 9d50212361
commit 722883d051
  1. 1
      ksplash/ksplashqml/splashwindow.cpp
  2. 1
      logout-greeter/shutdowndlg.cpp

@ -48,6 +48,7 @@ SplashWindow::SplashWindow(bool testing, bool window, const QString &theme)
if (auto layerShellWindow = LayerShellQt::Window::get(this)) {
layerShellWindow->setScope(QStringLiteral("ksplashqml"));
layerShellWindow->setLayer(LayerShellQt::Window::LayerOverlay);
layerShellWindow->setExclusiveZone(-1);
}
}

@ -211,6 +211,7 @@ void KSMShutdownDlg::init()
KWindowEffects::enableBlurBehind(winId(), true);
if (auto w = LayerShellQt::Window::get(this)) {
w->setKeyboardInteractivity(true);
w->setExclusiveZone(-1);
}
}

Loading…
Cancel
Save