mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:47:46 +00:00
Ladybird: Prohibit GUI interaction of the WebContent process on macOS
The WebContent process behaves a bit awkwardly on macOS. When we launch the process, we have to create a QGuiApplication to access system fonts. But on macOS, doing so creates an entry in the Dock, and also causes the WebContent to be focused. So if you enter cmd+Q without first focusing the Ladybird GUI, WebContent is closed, while the Ladybird process keeps running.
This commit is contained in:
parent
cc86c07f58
commit
4dcdc3bd25
4 changed files with 37 additions and 0 deletions
|
@ -17,6 +17,10 @@ set(WEBCONTENT_SOURCES
|
|||
main.cpp
|
||||
)
|
||||
|
||||
if (APPLE)
|
||||
list(APPEND WEBCONTENT_SOURCES MacOSSetup.mm)
|
||||
endif()
|
||||
|
||||
qt_add_executable(WebContent ${WEBCONTENT_SOURCES})
|
||||
|
||||
target_include_directories(WebContent PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Services/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue