diff --git a/src/main.cpp b/src/main.cpp index a910190..295c54c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -225,11 +225,11 @@ int main(int argc, char *argv[]){ SDL_SetHint(SDL_HINT_APP_NAME, "Oneshot: Sunshine"); SDL_SetHint(SDL_HINT_AUDIO_DEVICE_STREAM_NAME, "Oneshot: sunshine"); SDL_SetHint(SDL_HINT_AUDIO_DEVICE_STREAM_ROLE, "Game"); - #if defined(__linux__) && SDL_VERSION_ATLEAST(3, 4, 10) + #if defined(__linux__ || BSD || __sun) && SDL_VERSION_ATLEAST(3, 4, 10) SDL_SetHint(SDL_HINT_VIDEO_X11_ENABLE_XSYNC_EXT, "1"); #endif //X11 work on *BSD,Solaris too! -#if defined(__linux__) || defined(BSD) || defined(__sun) +#if defined(__linux__ || BSD || __sun) SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); #endif