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
This commit is contained in:
Jonas Ådahl 2020-04-28 21:50:47 +02:00
parent 61356caa06
commit 9e41f687a0

View File

@ -22,8 +22,10 @@
#include "backends/meta-remote-access-controller-private.h" #include "backends/meta-remote-access-controller-private.h"
#ifdef HAVE_REMOTE_DESKTOP
#include "backends/meta-remote-desktop.h" #include "backends/meta-remote-desktop.h"
#include "backends/meta-screen-cast.h" #include "backends/meta-screen-cast.h"
#endif
enum enum
{ {
@ -138,8 +140,10 @@ meta_remote_access_controller_notify_new_handle (MetaRemoteAccessController *con
void void
meta_remote_access_controller_inhibit_remote_access (MetaRemoteAccessController *controller) meta_remote_access_controller_inhibit_remote_access (MetaRemoteAccessController *controller)
{ {
#ifdef HAVE_REMOTE_DESKTOP
meta_remote_desktop_inhibit (controller->remote_desktop); meta_remote_desktop_inhibit (controller->remote_desktop);
meta_screen_cast_inhibit (controller->screen_cast); meta_screen_cast_inhibit (controller->screen_cast);
#endif
} }
/** /**
@ -153,8 +157,10 @@ meta_remote_access_controller_inhibit_remote_access (MetaRemoteAccessController
void void
meta_remote_access_controller_uninhibit_remote_access (MetaRemoteAccessController *controller) meta_remote_access_controller_uninhibit_remote_access (MetaRemoteAccessController *controller)
{ {
#ifdef HAVE_REMOTE_DESKTOP
meta_screen_cast_uninhibit (controller->screen_cast); meta_screen_cast_uninhibit (controller->screen_cast);
meta_remote_desktop_uninhibit (controller->remote_desktop); meta_remote_desktop_uninhibit (controller->remote_desktop);
#endif
} }
MetaRemoteAccessController * MetaRemoteAccessController *