Changeset View
Changeset View
Standalone View
Standalone View
ksmserver/switchuser-greeter/main.cpp
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Line(s) | 119 | { | |||
---|---|---|---|---|---|
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. | 138 | // Qt does not currently (5.9.4) support fullscreen on xdg_shell v6. | ||
139 | qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell"); | 139 | qputenv("QT_WAYLAND_SHELL_INTEGRATION", "wl-shell"); | ||
140 | 140 | | |||
141 | KWorkSpace::platformDetection(argc, argv); | ||||
141 | QQuickWindow::setDefaultAlphaBuffer(true); | 142 | QQuickWindow::setDefaultAlphaBuffer(true); | ||
142 | QGuiApplication app(argc, argv); | 143 | QGuiApplication app(argc, argv); | ||
143 | 144 | | |||
144 | Greeter greeter; | 145 | Greeter greeter; | ||
145 | greeter.init(); | 146 | greeter.init(); | ||
146 | 147 | | |||
147 | return app.exec(); | 148 | return app.exec(); | ||
148 | } | 149 | } | ||
149 | 150 | | |||
150 | #include "main.moc" | 151 | #include "main.moc" |