Skip to content

Commit 8c4bc28

Browse files
committed
Don't set xcb if running on wayland
1 parent ca1d2a2 commit 8c4bc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
3434
{
3535
// Set Qt platform to XCB (X11) if not already set and we're in X11 environment
3636
if (qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
37-
if (!qEnvironmentVariableIsEmpty("DISPLAY")) {
37+
if (!qEnvironmentVariableIsEmpty("DISPLAY") && qEnvironmentVariableIsEmpty("WAYLAND_DISPLAY")) {
3838
qputenv("QT_QPA_PLATFORM", "xcb");
3939
}
4040
}

0 commit comments

Comments
 (0)