From 9e41f687a07217185f2dcb4a90bf61c44fdfb232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 28 Apr 2020 21:50:47 +0200 Subject: [PATCH] remote-access-controller: Make it build with -Dremote_desktop=false It'll be all no-ops, which is fine, since there is nothing to inhibit/uninhibit. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1223 --- src/backends/meta-remote-access-controller.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backends/meta-remote-access-controller.c b/src/backends/meta-remote-access-controller.c index 71b7f1f7b..d719b9d84 100644 --- a/src/backends/meta-remote-access-controller.c +++ b/src/backends/meta-remote-access-controller.c @@ -22,8 +22,10 @@ #include "backends/meta-remote-access-controller-private.h" +#ifdef HAVE_REMOTE_DESKTOP #include "backends/meta-remote-desktop.h" #include "backends/meta-screen-cast.h" +#endif enum { @@ -138,8 +140,10 @@ meta_remote_access_controller_notify_new_handle (MetaRemoteAccessController *con void meta_remote_access_controller_inhibit_remote_access (MetaRemoteAccessController *controller) { +#ifdef HAVE_REMOTE_DESKTOP meta_remote_desktop_inhibit (controller->remote_desktop); meta_screen_cast_inhibit (controller->screen_cast); +#endif } /** @@ -153,8 +157,10 @@ meta_remote_access_controller_inhibit_remote_access (MetaRemoteAccessController void meta_remote_access_controller_uninhibit_remote_access (MetaRemoteAccessController *controller) { +#ifdef HAVE_REMOTE_DESKTOP meta_screen_cast_uninhibit (controller->screen_cast); meta_remote_desktop_uninhibit (controller->remote_desktop); +#endif } MetaRemoteAccessController *