<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lan-mouse/src/service.rs, branch main</title>
<subtitle>a fork</subtitle>
<id>https://git.nsrddyn.com/lan-mouse/atom/src/service.rs?h=main</id>
<link rel='self' href='https://git.nsrddyn.com/lan-mouse/atom/src/service.rs?h=main'/>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/'/>
<updated>2026-11-27T18:08:11Z</updated>
<entry>
<title>Fix capture/emulation bugs, smoother pointer, matching edge positions</title>
<updated>2026-11-27T18:08:11Z</updated>
<author>
<name>nasr</name>
<email>nsrddyn@gmail.com</email>
</author>
<published>2026-11-27T17:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=c994f85a6d743a7600a9013561e43e2206c5b485'/>
<id>urn:sha1:c994f85a6d743a7600a9013561e43e2206c5b485</id>
<content type='text'>
- proto: Enter/Leave carry an optional offset along the crossed edge
  (trailing bytes, so 0.11 peers still interoperate); decode only the
  received bytes instead of a stale fixed buffer; truncated datagrams
  are errors instead of panics
- capture: the cursor enters the remote at the height it left, and
  returns via a locked-pointer cursor hint where it left the remote
- capture: input captured before the peer acks Enter is queued and
  flushed instead of dropped
- layer-shell: forward accelerated motion (virtual pointers are not
  accelerated by the receiving compositor); track the wl_keyboard so
  capabilities events don't duplicate key events; ungrab before
  destroying capture windows; no panics on events without focus
- input-capture: events for positions without a client no longer
  stall the stream (Poll::Pending without a wakeup)
- wlroots emulation: place the cursor on the entry edge via absolute
  motion; drain compositor events and apply keymap changes; send
  axis_source before axis with a single frame
- emulation: check for dead peers every 500ms so held keys are
  released within ~1.5s instead of up to 6s
- connect: stop the ping loop after a send error

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_018U4KzBtfgSJ9kb2ywxrpvG
</content>
</entry>
<entry>
<title>refactor: collapse enter/leave hook spawning into shared helper</title>
<updated>2026-09-23T07:09:25Z</updated>
<author>
<name>Ty Smith</name>
<email>ty@tysmith.me</email>
</author>
<published>2026-05-27T19:46:07Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=a78362b56e8249c79e4d48b801216ede31e24086'/>
<id>urn:sha1:a78362b56e8249c79e4d48b801216ede31e24086</id>
<content type='text'>
The two spawn_*_hook_command functions were ~35 lines of near-byte-
identical glue (only the get_*_cmd call and log prefixes differed).
Replace with a single spawn_hook_command(handle, HookKind) and let
the kind carry the human label into log lines (which now also include
the client handle).

No behaviour change.
</content>
</entry>
<entry>
<title>feat: add leave_hook symmetric to enter_hook</title>
<updated>2026-09-23T07:09:25Z</updated>
<author>
<name>Ty Smith</name>
<email>ty@tysmith.me</email>
</author>
<published>2026-05-26T22:09:32Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=9b2b813c0517eee4966c3f042a8f9678885a73f4'/>
<id>urn:sha1:9b2b813c0517eee4966c3f042a8f9678885a73f4</id>
<content type='text'>
Per-client leave_hook fires sh -c &lt;cmd&gt; when capture for that client
is released. Wired through a single release_capture() chokepoint
covering release_bind, network send failure, Destroy-of-active-client,
and Release request paths.
</content>
</entry>
<entry>
<title>fix(dns): resolve hostnames via the OS resolver instead of pure DNS</title>
<updated>2026-06-14T21:31:48Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-05-05T04:31:34Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=a42592ab055e2fdad6b6545de5a849a3fefeeff1'/>
<id>urn:sha1:a42592ab055e2fdad6b6545de5a849a3fefeeff1</id>
<content type='text'>
hickory_resolver's TokioResolver only consults /etc/resolv.conf and
queries upstream DNS servers — which means it can't see /etc/hosts,
mDNS (Avahi/Bonjour), NetBIOS, or anything else in the system's full
name-resolution stack. On a typical home LAN there's no DNS server
that knows about peer machine names, so users had to fall back to
typing IP addresses, which broke the moment they moved their setup
to a different network.

Swap to tokio::net::lookup_host, which calls getaddrinfo (or
GetAddrInfoEx on Windows). That walks /etc/nsswitch.conf on Linux
(picking up Avahi-resolved .local names, /etc/hosts, and DNS), uses
Bonjour for .local on macOS, and the full Windows resolver on
Windows. A Bonjour hostname like "JKMBP-M4-Max.local" now resolves
on every modern network without explicit configuration; the user
can carry their two machines between LANs and the connection still
finds them.

Drop the hickory-resolver dependency entirely — it's no longer
needed. ServiceError::Dns also goes away; lookup failures surface as
io::Error which is already covered by ServiceError::Io.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fix(version-exchange): also store peer commit on the listen side</title>
<updated>2026-06-14T20:59:26Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-05-05T06:18:32Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=32b6683cdaa6cc4614eb8631b6379cac5af04e77'/>
<id>urn:sha1:32b6683cdaa6cc4614eb8631b6379cac5af04e77</id>
<content type='text'>
Previously the Hello handler in `ListenTask` echoed our local commit
back but deliberately threw away the peer's, on the assumption that
the outgoing connect-side path (`connect.rs:278-279` →
`set_peer_commit`) would always populate the visible state for any
bidirectionally-configured peer.

That assumption breaks any time the *outgoing* TCP/DTLS direction is
broken even though the inbound direction is fine — happened just now
when the peer Mac's daemon stopped listening on 4242 (DHCP-renewed
IP, daemon crashed, asymmetric NAT, …). Mac was still happily
connecting in the other direction and sending events, including the
initial Hello, but Linux silently displayed "peer version unknown"
because the listen side dropped Mac's commit on the floor.

Add a `PeerHello { addr, commit }` EmulationEvent variant fired from
the listen-side Hello handler. The service maps `addr → ClientHandle`
via `client_manager.get_client(addr)` and calls `set_peer_commit` +
`broadcast_client` exactly like the connect path does. The connect
path remains the primary source for symmetric setups; this is the
defensive fallback so version visibility doesn't depend on outbound
reachability.

Skips silently when no outgoing client is configured for the peer's
addr (incoming-only setup) — there's no UI row to update in that
case anyway.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>automatically update config when changed (#402)</title>
<updated>2026-04-09T10:04:21Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2026-04-09T10:04:21Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=a878c985f0633a12b00a363883fd56385c2368e7'/>
<id>urn:sha1:a878c985f0633a12b00a363883fd56385c2368e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Save config (#345)</title>
<updated>2026-02-07T17:36:07Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2026-02-07T17:36:07Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=648b2b58a4209a67e1542b700a0b2330660db87e'/>
<id>urn:sha1:648b2b58a4209a67e1542b700a0b2330660db87e</id>
<content type='text'>
* add setters for clients and authorized keys

* impl change config request

* basic saving functionality

* save config automatically

* add TODO comment</content>
</entry>
<entry>
<title>update dependencies (#302)</title>
<updated>2025-10-08T14:10:32Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2025-10-08T14:10:32Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=eb1dcbddb0617f19d118b68f69eac78844125797'/>
<id>urn:sha1:eb1dcbddb0617f19d118b68f69eac78844125797</id>
<content type='text'>
* update dependencies

* update windows

* clippy: inline format args

* update flake

* update core-graphics

* fix poll after completion error

* fix ashpd?!</content>
</entry>
<entry>
<title>unauthorized device accept notification (#282)</title>
<updated>2025-03-22T21:50:19Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2025-03-22T21:50:19Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=3ec23d71711230f1b3f0cac9a65db7372be0a288'/>
<id>urn:sha1:3ec23d71711230f1b3f0cac9a65db7372be0a288</id>
<content type='text'>
* ask the user to accept unauthorized devices

* only alert on actual error</content>
</entry>
<entry>
<title>feat: simplify and change configuration (#279)</title>
<updated>2025-03-15T17:45:19Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2025-03-15T17:45:19Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=92f652df2ec8d67af39f9c3b2c7284747cac0828'/>
<id>urn:sha1:92f652df2ec8d67af39f9c3b2c7284747cac0828</id>
<content type='text'>
*breaking change*
this changes the configuration syntax, allowing for an unlimited amount of configured clients.
Also a first step towards enabling a "save config" feature.</content>
</entry>
</feed>
