summaryrefslogtreecommitdiff
path: root/Ladybird/WebContent/MacOSSetup.mm
blob: e323c58adf4e3440cbf85672b6abe2a81db9c63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include "MacOSSetup.h"
#import <AppKit/NSApplication.h>

void prohibit_interaction()
{
    // This prevents WebContent from being displayed in the macOS Dock and becoming the focused,
    // interactable application upon launch.
    [NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited];
}