<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lan-mouse/src/capture.rs, branch main</title>
<subtitle>a fork</subtitle>
<id>https://git.nsrddyn.com/lan-mouse/atom/src/capture.rs?h=main</id>
<link rel='self' href='https://git.nsrddyn.com/lan-mouse/atom/src/capture.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>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(capture): release peer keys on release-bind</title>
<updated>2026-04-29T20:59:43Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-04-27T17:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=373e38215281692f15f8d3fc36a0adccff80df62'/>
<id>urn:sha1:373e38215281692f15f8d3fc36a0adccff80df62</id>
<content type='text'>
When the user pressed the release-bind chord (typically all four
modifiers) the down events for the chord were forwarded to the peer
while capture was active, but the matching up events arrived after
the local tap flipped to passthrough and were never forwarded. The
peer was left with phantom held modifiers until either its watchdog
ran (1+ s) or the Leave message was processed — and Leave is sent
over UDP/DTLS and can be lost.

Drain the capture's pressed_keys set in release_capture and emit a
KeyboardEvent::Key{state: 0} for every still-held key, plus a
zeroed KeyboardEvent::Modifiers, before sending Leave. The receiver
already maintains pressed_keys per handle and processes these
key-up events through its normal path, so no protocol change is
required and an unmodified peer picks up the fix automatically.

The receiver-side release_keys safety net stays in place for the
genuine packet-loss / disconnect-without-Leave cases.

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>fix: remote key-up on triggered release (#371)</title>
<updated>2026-02-06T15:06:19Z</updated>
<author>
<name>Jon Stelly</name>
<email>967068+jonstelly@users.noreply.github.com</email>
</author>
<published>2026-02-06T15:06:19Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=0d96948c26012cc8cdaa1c76b9b3ff736e970f6e'/>
<id>urn:sha1:0d96948c26012cc8cdaa1c76b9b3ff736e970f6e</id>
<content type='text'>
Fixes #369</content>
</entry>
<entry>
<title>Add rustfmt.toml for explicit styling (#348)</title>
<updated>2025-11-02T10:52:01Z</updated>
<author>
<name>NeoTheFox</name>
<email>soniczerops@gmail.com</email>
</author>
<published>2025-11-02T10:52:01Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=3f13714d8a68e5600cf2c82977f6ce358d60ba42'/>
<id>urn:sha1:3f13714d8a68e5600cf2c82977f6ce358d60ba42</id>
<content type='text'>
* Propose an explicit .rustfnt.toml
Use 2024 style, 4 spaces for tabs and epand the default width a tad

* Auto-format the existing code with new rules</content>
</entry>
<entry>
<title>Encryption and One-Way-Control (#200)</title>
<updated>2024-11-09T12:54:43Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2024-11-09T12:54:43Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=7677fae14b5b8ab052ad8dbe5dcdf41b56354ed3'/>
<id>urn:sha1:7677fae14b5b8ab052ad8dbe5dcdf41b56354ed3</id>
<content type='text'>
This is a major rewrite of the core networking logic enabling one-way control and encryption through the webrtc-dtls crate.

closes #164 
closes #104 </content>
</entry>
<entry>
<title>split into input-{event,capture,emulation}</title>
<updated>2024-07-02T20:07:37Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinand.schober@fau.de</email>
</author>
<published>2024-07-02T18:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=4db2d37f32dca0fe3e3e051d73c518be809f8a26'/>
<id>urn:sha1:4db2d37f32dca0fe3e3e051d73c518be809f8a26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>reduce coupling of emulation and capture backends</title>
<updated>2024-07-02T14:23:07Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2024-07-02T09:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=70a23b9fa7473e29bd9db44ac992556628b348a1'/>
<id>urn:sha1:70a23b9fa7473e29bd9db44ac992556628b348a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Configurable emulation backend (#151)</title>
<updated>2024-07-01T18:09:16Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2024-07-01T18:09:16Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=b6b16063a80e545d08b282b881705e7f4756d163'/>
<id>urn:sha1:b6b16063a80e545d08b282b881705e7f4756d163</id>
<content type='text'>
</content>
</entry>
</feed>
