Merge pull request #5775 from Cacodemon345/gamemode-support

Add support for Feral Interactive's gamemode on Linux
This commit is contained in:
Miran Grča
2025-07-10 19:33:39 +02:00
committed by GitHub
3 changed files with 381 additions and 0 deletions

View File

@@ -455,6 +455,7 @@ endif()
if (UNIX AND NOT APPLE AND NOT HAIKU)
target_sources(ui PRIVATE x11_util.c)
target_link_libraries(plat PRIVATE ${CMAKE_DL_LIBS})
find_package(X11 REQUIRED)
target_link_libraries(ui PRIVATE X11::X11 X11::Xi)

View File

@@ -56,6 +56,10 @@ extern "C" {
#include <86box/gdbstub.h>
#include <86box/version.h>
#include <86box/renderdefs.h>
#ifdef Q_OS_LINUX
#define GAMEMODE_AUTO
#include "../unix/gamemode/gamemode_client.h"
#endif
}
#ifdef Q_OS_WINDOWS