diff --git a/src/wayland/tools/generator.cpp b/src/wayland/tools/generator.cpp index 663ea8165e..099f680904 100644 --- a/src/wayland/tools/generator.cpp +++ b/src/wayland/tools/generator.cpp @@ -1304,7 +1304,11 @@ void Generator::generateClientCppRequests(const Interface &interface) requestArguments.append(QStringLiteral(", *%1").arg(toCamelCase(a.name()))); } else { arguments.append(QStringLiteral("%1 %2").arg(a.typeAsQt()).arg(toCamelCase(a.name()))); - requestArguments.append(QStringLiteral(", %1").arg(toCamelCase(a.name()))); + QString arg = toCamelCase(a.name()); + if (a.type() == Argument::Type::Fixed) { + arg = QStringLiteral("wl_fixed_from_double(%1)").arg(arg); + } + requestArguments.append(QStringLiteral(", %1").arg(arg)); } } if (factored.isEmpty()) {