backend/native: Add getter for is-headless state

Will be used to determine how to run subsystems.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1698>
This commit is contained in:
Jonas Ådahl 2021-01-19 11:50:52 +01:00 committed by Marge Bot
parent 0786f44b0b
commit 739283d396
2 changed files with 8 additions and 0 deletions

View File

@ -335,6 +335,12 @@ meta_backend_native_get_seat_id (MetaBackendNative *backend_native)
return meta_launcher_get_seat_id (backend_native->launcher);
}
gboolean
meta_backend_native_is_headless (MetaBackendNative *backend_native)
{
return backend_native->is_headless;
}
static void
meta_backend_native_set_pointer_constraint (MetaBackend *backend,
MetaPointerConstraint *constraint)

View File

@ -49,4 +49,6 @@ MetaKms * meta_backend_native_get_kms (MetaBackendNative *native);
const char * meta_backend_native_get_seat_id (MetaBackendNative *backend_native);
gboolean meta_backend_native_is_headless (MetaBackendNative *backend_native);
#endif /* META_BACKEND_NATIVE_H */