From cb13ebc625c52ee964ae9310d64fb0a3a9a94f36 Mon Sep 17 00:00:00 2001 From: nullobsi Date: Thu, 4 Mar 2021 20:57:37 -0800 Subject: [PATCH] fix windows build --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 92d5d08d..e600ce55 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,6 +38,7 @@ int waitAfterConnecting(int delay, QCoreApplication& app) return app.exec(); } +#ifdef Q_OS_LINUX // source: https://github.com/ksnip/ksnip/issues/416 void wayland_hacks() { @@ -47,6 +48,7 @@ void wayland_hacks() qputenv("QT_QPA_PLATFORM", "xcb"); } } +#endif int main(int argc, char* argv[]) {