Improve appearance of the logout dialog on wayland

Summary:
The logout dialog has a taskbar entry and appears like a regular window on
wayland. This is because Qt does not support fullscreen windows with xdg_shell
as of 5.9.4. wl-shell works, so force it for the time being.

Test Plan: Ran ksmserver-logout-greeter on X11 and wayland, looks identical now.

Reviewers: #plasma, graesslin, davidedmundson, bshah

Reviewed By: #plasma, graesslin, bshah

Subscribers: ngraham, bshah, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10425
wilder-5.14
Fabian Vogt 8 years ago committed by Kai Uwe Broulik
parent 518373a17a
commit 1ae77bf957
  1. 3
      ksmserver/logout-greeter/main.cpp
  2. 3
      ksmserver/switchuser-greeter/main.cpp

@ -163,6 +163,9 @@ bool Greeter::eventFilter(QObject *watched, QEvent *event)
int main(int argc, char *argv[])
{
// Qt does not currently (5.9.4) support fullscreen on xdg_shell v6.
qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell");
QQuickWindow::setDefaultAlphaBuffer(true);
QApplication app(argc, argv);

@ -135,6 +135,9 @@ bool Greeter::eventFilter(QObject *watched, QEvent *event)
int main(int argc, char *argv[])
{
// Qt does not currently (5.9.4) support fullscreen on xdg_shell v6.
qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell");
QQuickWindow::setDefaultAlphaBuffer(true);
QGuiApplication app(argc, argv);

Loading…
Cancel
Save