config: add documentation
This commit is contained in:
parent
6916f03e94
commit
fe80440f38
36 changed files with 620 additions and 199 deletions
|
|
@ -1,5 +1,11 @@
|
|||
//! 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue