1
0
Fork 0
forked from wry/wry
wry/jay-config/src/embedded.rs
2022-05-16 18:21:56 +02:00

11 lines
343 B
Rust

//! Tools to configure the compositor in embedded environments.
use crate::input::InputDevice;
/// Grab the input device.
///
/// This usually only works if the compositor is running as an application under X. It will
/// probably not work under XWayland.
pub fn grab_input_device(kb: InputDevice, grab: bool) {
get!().grab(kb, grab);
}