Changeset View
Changeset View
Standalone View
Standalone View
ksmserver/switchuser-greeter/main.cpp
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 121 | if (event->type() == QEvent::MouseButtonPress) { | |||
---|---|---|---|---|---|
130 | qApp->quit(); | 130 | qApp->quit(); | ||
131 | } | 131 | } | ||
132 | } | 132 | } | ||
133 | return false; | 133 | return false; | ||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | int main(int argc, char *argv[]) | 136 | int main(int argc, char *argv[]) | ||
137 | { | 137 | { | ||
138 | // Qt does not currently (5.9.4) support fullscreen on xdg_shell v6. | ||||
139 | qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell"); | ||||
140 | | ||||
138 | QQuickWindow::setDefaultAlphaBuffer(true); | 141 | QQuickWindow::setDefaultAlphaBuffer(true); | ||
139 | QGuiApplication app(argc, argv); | 142 | QGuiApplication app(argc, argv); | ||
140 | 143 | | |||
141 | Greeter greeter; | 144 | Greeter greeter; | ||
142 | greeter.init(); | 145 | greeter.init(); | ||
143 | 146 | | |||
144 | return app.exec(); | 147 | return app.exec(); | ||
145 | } | 148 | } | ||
146 | 149 | | |||
147 | #include "main.moc" | 150 | #include "main.moc" |