package oxbow
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=a637acaa0e19046cd65fff733874eb97
sha512=76230cbecd7510de7a05b5d1f335915ef7b6c4aa557d8dbfd23591606618d2cfa25082d17b93f2f4b53a118d1cbf6a80e4ad51cf0f099b4921fb83d6df0c9801
doc/oxbow.state/Oxbow_state/Input_device/index.html
Module Oxbow_state.Input_deviceSource
include module type of Types.Input_device
type t = {obj : Wire.Obj.Input.Management.Device.t;name : string;role : Role.t;mutable lifecycle : Lifecycle.t;mutable libinput : Wire.Obj.Input.Config.Device.t option;
}role_to_string role is the string representation of role.
set_keyboard wm device xkb sets device's xkb attribute to xkb if device is a keyboard. Logs a warning if device is not a keyboard. Sends a River request to set the user's configured keymap.
Effects: mutates WM state; sends River request
set_lifecycle device lifecycle sets device's lifecycle to lifecycle.
Effects: mutates WM state
clear_device device proxy clears device if it is holding proxy.
Effects: mutates WM state
remove_device device deletes device's associated Wayland objects. Is a no-op if device was already removed.
Effects: mutates WM state; sends River request
id proxy is the protocol object id of proxy. The bridge uses it as a map key.
val matches :
t ->
pattern:string option ->
case:Oxbow_core.Pattern.Case.t ->
role:Oxbow_core.Input.Role.t option ->
boolmatches device ~pattern ~case ~role is true when device matches role and pattern according to case.