diff --git a/UI/importers/studio.cpp b/UI/importers/studio.cpp index 6c06828babd8d2..30d72fa6c3c5f2 100644 --- a/UI/importers/studio.cpp +++ b/UI/importers/studio.cpp @@ -16,6 +16,9 @@ ******************************************************************************/ #include "importers.hpp" +#if !defined(_WIN32) && !defined(__APPLE__) +#include +#endif using namespace std; using namespace json11; @@ -109,7 +112,13 @@ void TranslateOSStudio(Json &res) ClearTranslation("av_capture_input", "v4l2_input"); ClearTranslation("dshow_input", "v4l2_input"); - ClearTranslation("window_capture", "xcomposite_input"); + if (obs_get_nix_platform() == OBS_NIX_PLATFORM_X11_EGL) { + ClearTranslation("game_capture", "xcomposite_input"); + ClearTranslation("window_capture", "xcomposite_input"); + } else { + ClearTranslation("game_capture", "pipewire-screen-capture-source"); + ClearTranslation("window_capture", "pipewire-screen-capture-source"); + } if (id == "monitor_capture") { source["id"] = "xshm_input";