jay_config/embedded.rs
1//! Tools to configure the compositor in embedded environments.
2
3use crate::input::InputDevice;
4
5/// Grab the input device.
6///
7/// This usually only works if the compositor is running as an application under X. It will
8/// probably not work under XWayland.
9pub fn grab_input_device(kb: InputDevice, grab: bool) {
10 get!().grab(kb, grab);
11}