Skip to content

Commit

Permalink
Sources: Disable window source on Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
univrsal committed Jan 20, 2025
1 parent 7d499f9 commit 0979aa5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/query/music_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <QJsonObject>
#include <QRegularExpression>
#include <obs-frontend-api.h>
#include <obs/obs-nix-platform.h>

Check failure on line 44 in src/query/music_source.cpp

View workflow job for this annotation

GitHub Actions / Build Project 🧱 / Build for macOS 🍏

'obs/obs-nix-platform.h' file not found

namespace music_sources {
static std::atomic<int> selected_index = -1;
Expand All @@ -52,7 +53,15 @@ void init()
instances.append(std::make_shared<spotify_source>());
instances.append(std::make_shared<mpd_source>());
instances.append(std::make_shared<vlc_obs_source>());
instances.append(std::make_shared<window_source>());
#if __linux__ || __FreeBSD__ || __OpenBSD__
if (obs_get_nix_platform() == OBS_NIX_PLATFORM_X11_EGL)
instances.append(std::make_shared<window_source>());
else
binfo("Running on Wayland disabling window source");
#else
instances.append(std::make_shared<window_source>());
#endif

instances.append(std::make_shared<lastfm_source>());
// instances.append(std::make_shared<gpmdp_source>()); // Deprecated, Youtube music can send information to tuna
instances.append(std::make_shared<web_source>());
Expand Down

0 comments on commit 0979aa5

Please sign in to comment.