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:
parent
0786f44b0b
commit
739283d396
@ -335,6 +335,12 @@ meta_backend_native_get_seat_id (MetaBackendNative *backend_native)
|
|||||||
return meta_launcher_get_seat_id (backend_native->launcher);
|
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
|
static void
|
||||||
meta_backend_native_set_pointer_constraint (MetaBackend *backend,
|
meta_backend_native_set_pointer_constraint (MetaBackend *backend,
|
||||||
MetaPointerConstraint *constraint)
|
MetaPointerConstraint *constraint)
|
||||||
|
@ -49,4 +49,6 @@ MetaKms * meta_backend_native_get_kms (MetaBackendNative *native);
|
|||||||
|
|
||||||
const char * meta_backend_native_get_seat_id (MetaBackendNative *backend_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 */
|
#endif /* META_BACKEND_NATIVE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user