We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1d2a2 commit 8c4bc28Copy full SHA for 8c4bc28
main.cpp
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
34
{
35
// Set Qt platform to XCB (X11) if not already set and we're in X11 environment
36
if (qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
37
- if (!qEnvironmentVariableIsEmpty("DISPLAY")) {
+ if (!qEnvironmentVariableIsEmpty("DISPLAY") && qEnvironmentVariableIsEmpty("WAYLAND_DISPLAY")) {
38
qputenv("QT_QPA_PLATFORM", "xcb");
39
}
40
0 commit comments