summaryrefslogtreecommitdiff
path: root/Ladybird/WebContent/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Ladybird/WebContent/main.cpp')
-rw-r--r--Ladybird/WebContent/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Ladybird/WebContent/main.cpp b/Ladybird/WebContent/main.cpp
index 9b805652cc..b715203079 100644
--- a/Ladybird/WebContent/main.cpp
+++ b/Ladybird/WebContent/main.cpp
@@ -11,6 +11,7 @@
#include "../Utilities.h"
#include "../WebSocketClientManagerLadybird.h"
#include <AK/LexicalPath.h>
+#include <AK/Platform.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
#include <LibCore/LocalServer.h>
@@ -31,6 +32,10 @@
#include <WebContent/PageHost.h>
#include <WebContent/WebDriverConnection.h>
+#if defined(AK_OS_MACOS)
+# include "MacOSSetup.h"
+#endif
+
static ErrorOr<void> load_content_filters();
static ErrorOr<void> load_autoplay_allowlist();
@@ -40,6 +45,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
{
QGuiApplication app(arguments.argc, arguments.argv);
+#if defined(AK_OS_MACOS)
+ prohibit_interaction();
+#endif
+
Core::EventLoopManager::install(*new Ladybird::EventLoopManagerQt);
Core::EventLoop event_loop;