From 4d7f1d1358bf0bba103ea7df1ebc04566b8be73b Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 2 Dec 2021 16:02:22 +0200 Subject: [PATCH] wayland: Rename wayland_fd arg to wayland-fd This make argument naming consistent, for example we have xwayland-fd arg, which has a dash instead of underscore. --- src/helpers/wayland_wrapper/kwin_wrapper.cpp | 2 +- src/main_wayland.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/wayland_wrapper/kwin_wrapper.cpp b/src/helpers/wayland_wrapper/kwin_wrapper.cpp index 2a42980e6e..c3dafb711e 100644 --- a/src/helpers/wayland_wrapper/kwin_wrapper.cpp +++ b/src/helpers/wayland_wrapper/kwin_wrapper.cpp @@ -95,7 +95,7 @@ void KWinWrapper::run() QStringList args; - args << "--wayland_fd" << QString::number(wl_socket_get_fd(m_socket)); + args << "--wayland-fd" << QString::number(wl_socket_get_fd(m_socket)); args << "--socket" << QString::fromUtf8(wl_socket_get_display_name(m_socket)); if (m_xwlSocket) { diff --git a/src/main_wayland.cpp b/src/main_wayland.cpp index 352cc90da9..045f961ce8 100644 --- a/src/main_wayland.cpp +++ b/src/main_wayland.cpp @@ -456,9 +456,9 @@ int main(int argc, char * argv[]) QStringLiteral("count")); outputCountOption.setDefaultValue(QString::number(1)); - QCommandLineOption waylandSocketFdOption(QStringLiteral("wayland_fd"), + QCommandLineOption waylandSocketFdOption(QStringLiteral("wayland-fd"), i18n("Wayland socket to use for incoming connections. This can be combined with --socket to name the socket"), - QStringLiteral("wayland_fd")); + QStringLiteral("wayland-fd")); QCommandLineOption xwaylandListenFdOption(QStringLiteral("xwayland-fd"), i18n("XWayland socket to use for Xwayland's incoming connections. This can be set multiple times"),