mirror of
https://github.com/nestriness/nestri.git
synced 2026-09-19 17:25:19 +03:00
refactor: the hub is neshub everywhere
Six comments across nescope, neswire and nescapture still named nestri-guest-hub, plus one still naming nestri-protocol. Deferred from the import commits so the rename would read as one change rather than six unexplained edits inside otherwise-verbatim trees. Comments only. Realigned an ASCII box in encode.rs that the shorter name knocked crooked.
This commit is contained in:
@@ -32,7 +32,7 @@ use nesprotocol::input::{self as nestri_input, DecodedInput};
|
||||
use crate::focus::KeyboardFocusTarget;
|
||||
use crate::state::NescopeState;
|
||||
|
||||
// ── Wire protocol constants (mirrors nestri-protocol/src/input.rs) ──
|
||||
// ── Wire protocol constants (mirrors nesprotocol/src/input.rs) ──
|
||||
const WIRE_INPUT_KEY: u8 = 0;
|
||||
const WIRE_INPUT_MOUSE_MOVE: u8 = 1;
|
||||
const WIRE_INPUT_MOUSE_BUTTON: u8 = 2;
|
||||
@@ -304,7 +304,7 @@ pub fn process_input(event: InputEvent, state: &mut NescopeState) {
|
||||
// Wire-protocol decoder
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
/// Decode a single input event from the nestri guest-hub wire protocol
|
||||
/// Decode a single input event from the neshub wire protocol
|
||||
/// and convert it to an [`InputEvent`] for the compositor seat.
|
||||
///
|
||||
/// Uses the shared [`nesprotocol::input::decode_input_event`] and maps:
|
||||
|
||||
@@ -337,7 +337,7 @@ fn main() {
|
||||
}
|
||||
|
||||
// ── Input IPC source ─────────────────────────────────────────────────
|
||||
// Connect to the nestri-guest-hub input socket and feed events into the
|
||||
// Connect to the neshub input socket and feed events into the
|
||||
// compositor seat. Reconnection is handled in the idle callback.
|
||||
let ipc_path = args.input_ipc.clone();
|
||||
match input_ipc::InputIpcSource::connect(&ipc_path) {
|
||||
|
||||
Reference in New Issue
Block a user