From 547a2dd413d3d1b26a8efd6faa374007d1396e09 Mon Sep 17 00:00:00 2001 From: Andrew Shark Date: Sat, 2 Oct 2021 03:21:04 +0300 Subject: [PATCH] Add warning on wayland, fix #247 --- src/gui/src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/src/main.cpp b/src/gui/src/main.cpp index 73251d52..776b44de 100644 --- a/src/gui/src/main.cpp +++ b/src/gui/src/main.cpp @@ -97,6 +97,12 @@ int main(int argc, char* argv[]) QApplication::setQuitOnLastWindowClosed(false); + if (QGuiApplication::platformName() == "wayland") { + QMessageBox::warning( + NULL, "Barrier", + "You are using wayland session, which is currently not fully supported by Barrier."); + } + QSettings settings; AppConfig appConfig (&settings);