diff --git a/src/UI/Window.cc b/src/UI/Window.cc
index 588ff30f496e82180f19c3daad8c86a7a9665028..c4e8f182ec3128e3fa61c8c99edf91cea3757367 100644
--- a/src/UI/Window.cc
+++ b/src/UI/Window.cc
@@ -82,5 +82,9 @@ Window::layout() const noexcept
 QMenuBar *
 Window::menuBar() const noexcept
 {
+#ifndef VIVY_MACOS
     return titleBar->menuBar();
+#else
+    return QMainWindow::menuBar();
+#endif
 }
diff --git a/src/VivyApplication.hh b/src/VivyApplication.hh
index 7f4bfac99d9344ca59ac4c0e8d95507826468d5b..86c7404115cb3db9bb786e3f69962a3e23f43bc6 100644
--- a/src/VivyApplication.hh
+++ b/src/VivyApplication.hh
@@ -12,6 +12,11 @@
 #include <QPixmap>
 #include <QFont>
 
+// Detect MacOS
+#if defined(Q_OS_DARWIN) || defined(Q_OS_MACOS)
+#define VIVY_MACOS
+#endif
+
 #include "Lib/Document/VivyDocumentStore.hh"
 
 namespace Vivy