freebsd-ports/www/iridium/files/patch-remoting_host_it2me_it2me__host.cc
Robert Nagy 7034f5e54b www/iridium: update to 2023.03.111
Approved by:	rene (mentor)
2023-03-14 06:51:33 +01:00

29 lines
1 KiB
C++

--- remoting/host/it2me/it2me_host.cc.orig 2023-03-13 07:33:08 UTC
+++ remoting/host/it2me/it2me_host.cc
@@ -43,7 +43,7 @@
#include "remoting/signaling/signaling_id_util.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "remoting/host/linux/wayland_manager.h"
#include "remoting/host/linux/wayland_utils.h"
#endif // BUILDFLAG(IS_LINUX)
@@ -144,7 +144,7 @@ void It2MeHost::Connect(
OnPolicyUpdate(std::move(policies));
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (IsRunningWayland()) {
WaylandManager::Get()->Init(host_context_->ui_task_runner());
}
@@ -283,7 +283,7 @@ void It2MeHost::ConnectOnNetworkThread(
// Set up the desktop environment options.
DesktopEnvironmentOptions options(DesktopEnvironmentOptions::CreateDefault());
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (IsRunningWayland()) {
options.desktop_capture_options()->set_prefer_cursor_embedded(true);
}