package oxbow
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=a637acaa0e19046cd65fff733874eb97
sha512=76230cbecd7510de7a05b5d1f335915ef7b6c4aa557d8dbfd23591606618d2cfa25082d17b93f2f4b53a118d1cbf6a80e4ad51cf0f099b4921fb83d6df0c9801
doc/oxbow.state/Oxbow_state/Seat/index.html
Module Oxbow_state.SeatSource
include module type of Types.Seat
type t = {obj : Wire.Obj.Window_management.Seat.t;layer_shell : Wire.Obj.Layer_shell.Seat.t;xkb_seat : Wire.Obj.Xkb.Bindings.Seat.t;mutable overview_watch : int32;mutable watch_sent : int32;mutable lifecycle : Lifecycle.t;mutable name : string option;mutable output : Types.Output.t option;mutable focus_cleared : bool;mutable position : Position.t;mutable layer_focus : Layer_focus.t option;mutable mode : Oxbow_core.Mode.t;mutable xkb_bindings : Xkb_binding.t list;mutable pointer_bindings : Pointer_binding.t list;mutable pending_requests : Pending_request.t Queue.t;mutable hovered : Types.Window.t option;mutable interacted : Types.Window.t option;mutable warp_request : Warp_request.t;mutable focus_state : Focus_state.t;mutable cursor_target : Types.Window.t option;mutable op : Op.t option;
}refresh_cursor_target seat syncs seat's cursor targed with seat's hovered if hovered is Some window. No-op when hovered is None.
Effects: mutates WM state
queue_pending seat request adds request to seat's queue.
Effects: mutates WM state
drain_pending seat removes and returns the next pending request on seat, or None when the queue is empty.
Effects: mutates WM state
clear_pending seat discards every pending request on seat.
Effects: mutates WM state
set_output seat output sets seat's output to output.
Effects: mutates WM state
set_focus_cleared seat cleared sets seat's focus cleared state to cleared.
Effects: mutates WM state
focus_output seat output moves seat's focus to output if output is not already focused.
Effects: mutates WM state
set_layer_focus seat layer sets seat's focused layer to layer.
Effects: mutates WM state
set_mode seat mode sets seat's current mode to mode. Is Error msg when mode is Mode.locked.
Effects: mutates WM state
set_position seat (x, y) positions seat at (x, y).
Effects: mutates WM state
set_cursor_target seat cursor_target sets seat's cursor target to cursor_target.
Effects: mutates WM state
set_focus_state seat state sets seat's focus state to state.
Effects: mutates WM state
set_op seat op sets seat's current operation to op.
Effects: mutates WM state
clear_op seat clears the current operation on seat.
Effects: mutates WM state
set_op_delta seat dx dy updates seat's current operation deltas.
Effects: mutates WM state
release_op seat flags seat's current operation for release. No-op when seat has no operation.
Effects: mutates WM state
set_lifecycle seat lifecycle sets seat's lifecycle to lifecycle.
Effects: mutates WM state
set_name seat name sets seat's name to name.
Effects: mutates WM state
set_hovered seat hovered sets seat's hovered window to hovered.
Effects: mutates WM state
set_interacted seat interacted sets seat's interacted window to interacted.
Effects: mutates WM state
set_warp_pending seat pending sets seat's warp pending flag to pending.
Effects: mutates WM state
set_overview_watch seat watch sets watch as seat's watched modifiers for overview mode.
Effects: mutates WM state
set_watch_sent seat sent sets sent as seat's watched modifiers.
Effects: mutates WM state
val bind :
Types.Wm.t ->
t ->
?mode:Oxbow_core.Mode.t ->
int32 ->
Types.Key.t ->
Oxbow_ipc.Command.t ->
boolbind wm seat ?mode mods key command binds the mods and key to command in mode (default Mode.normal). Replaces any existing binding for mods and key. Is true when an existing binding for mods and key was replaced.
Effects: mutates WM state
unbind seat ?mode mods key unbinds the command bound to mods and key in mode (default Mode.normal). Is true when a binding was destroyed.
Effects: mutates WM state
clear_bindings s destroys every pointer and key bind of s.
Effects: mutates WM state
focused_window seat is the focused window on seat's output; None when the seat has no output.