<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lan-mouse/lan-mouse-gtk/src, branch main</title>
<subtitle>a fork</subtitle>
<id>https://git.nsrddyn.com/lan-mouse/atom/lan-mouse-gtk/src?h=main</id>
<link rel='self' href='https://git.nsrddyn.com/lan-mouse/atom/lan-mouse-gtk/src?h=main'/>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/'/>
<updated>2026-10-25T13:39:24Z</updated>
<entry>
<title>fix(macos): wait for app exit before relaunch (#475)</title>
<updated>2026-10-25T13:39:24Z</updated>
<author>
<name>Yunmin Cha</name>
<email>mrcha033@yonsei.ac.kr</email>
</author>
<published>2026-10-25T13:39:24Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=974456325e6c350f0c66b4dcdb987bccf1ceb8b4'/>
<id>urn:sha1:974456325e6c350f0c66b4dcdb987bccf1ceb8b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: use windows().first() instead of active_window() for re-activation check</title>
<updated>2026-09-23T07:41:46Z</updated>
<author>
<name>Ty Smith</name>
<email>ty@tysmith.me</email>
</author>
<published>2026-03-29T01:36:27Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=66be7d6df3a40a51add1da5acc9180b64dd37822'/>
<id>urn:sha1:66be7d6df3a40a51add1da5acc9180b64dd37822</id>
<content type='text'>
active_window() only returns the focused window, which can be None even
when a window exists but isn't focused. Use windows().first() to check
if any window exists regardless of focus state.
</content>
</entry>
<entry>
<title>feat: single-instance application support</title>
<updated>2026-09-23T07:41:46Z</updated>
<author>
<name>Ty Smith</name>
<email>ty@tysmith.me</email>
</author>
<published>2026-03-29T01:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=5e9d4c7cea3732463184ca119a60519d885713f1'/>
<id>urn:sha1:5e9d4c7cea3732463184ca119a60519d885713f1</id>
<content type='text'>
Previously, every launch of lan-mouse in GUI mode unconditionally
spawned a new daemon child process and created a new GTK window, even
if an instance was already running. The daemon had single-instance
detection (via IPC socket binding), but the GUI layer did not take
advantage of it.

This change makes the full application single-instance:

- main.rs: Before spawning a daemon child process, probe the IPC
  socket via is_service_running(). If a daemon is already listening,
  skip spawning and just launch the GTK frontend, which connects to
  the existing daemon. Daemon lifecycle cleanup (SIGINT + wait + kill)
  is only performed if we spawned the daemon ourselves.

- lan-mouse-ipc: Add is_service_running() that does a one-shot
  socket probe (Unix socket or TCP on Windows) to check if a daemon
  is reachable. Add try_connect() that attempts a single connection
  without the infinite retry loop of connect()/wait_for_service().
  Extract shared connection-building logic into make_connection().

- lan-mouse-gtk: In build_ui(), check app.active_window() first and
  present the existing window on GApplication re-activation instead
  of creating a duplicate window with a new IPC connection. Replace
  the blocking connect() call with try_connect(), falling back to
  spawning a new daemon and then using connect() if the initial
  connection fails. This handles the edge case where a daemon dies
  between the main.rs probe and the GTK connection attempt.

Behavior changes to note:
- When connecting to an externally-managed daemon (e.g. one started
  via `lan-mouse daemon`), closing the GUI no longer kills it.
- If the daemon dies between startup detection and GTK connection,
  the GUI transparently spawns a replacement instead of hanging.
</content>
</entry>
<entry>
<title>use proper css styling for the font colors</title>
<updated>2026-06-14T20:59:26Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinand.schober@fau.de</email>
</author>
<published>2026-06-14T17:07:05Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=d68df354097b2ad2f1be9a9ac9ac3dcbf6fa10b0'/>
<id>urn:sha1:d68df354097b2ad2f1be9a9ac9ac3dcbf6fa10b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: cargo fmt for peer-version code</title>
<updated>2026-06-14T20:59:26Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-05-06T19:41:21Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=c2f6e172bba692294cdb5c870d8aafdeec49f3b5'/>
<id>urn:sha1:c2f6e172bba692294cdb5c870d8aafdeec49f3b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ui(client_row): sentence-case "Peer version" and "Ours" labels</title>
<updated>2026-06-14T20:59:26Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-05-04T21:22:45Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=62b22e1764f2aeabde299fbc7568eb255e908d89'/>
<id>urn:sha1:62b22e1764f2aeabde299fbc7568eb255e908d89</id>
<content type='text'>
These are user-visible labels in the version-status subtitle, so
sentence-case reads better than the lowercase first-pass. "matched"
stays lowercase since it's a status descriptor, not a label.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>feat: peer version exchange with soft-warn UI indicator</title>
<updated>2026-06-14T20:59:26Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-05-04T18:50:40Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=72c86c0d8352684fc2d005522d4c5b496be0158b'/>
<id>urn:sha1:72c86c0d8352684fc2d005522d4c5b496be0158b</id>
<content type='text'>
Adds a one-shot Hello message to the lan-mouse wire protocol so each
peer can display the other end's build commit hash and warn on
version mismatch. Soft-warn only — mismatched versions never refuse
traffic.

Wire change (lan-mouse-proto)
* `ProtoEvent::Hello { commit: [u8; 8] }` carries the 8-byte ASCII
  short commit from shadow_rs's `SHORT_COMMIT`. Encoded/decoded
  alongside the existing event variants.
* `EventType::Hello` is appended to the enum so existing IDs are
  untouched. Old peers receive the event, hit `InvalidEventId`, and
  silently skip it via the forward-compat handler in
  `connect.rs::receive_loop` — the connection is unaffected.

Daemon
* Connect side sends one Hello immediately after the DTLS handshake
  authenticates and before the ping_pong loop starts. Best-effort,
  fire-and-forget — `log::debug!` on send error.
* Listen side mirrors the peer's Hello with its own (same shape as
  the existing Ping → Pong reply), so the peer's connect-side
  receive_loop populates `ClientState::peer_commit` for that
  handle.
* The disconnect path clears `peer_commit` so a stale hash isn't
  shown after the connection drops.

IPC
* `ClientState::peer_commit: Option&lt;[u8; 8]&gt;`. `None` means the
  peer hasn't sent Hello yet — either fresh connection or older
  build that predates the event.

GTK
* `ClientObject` exposes `peer-commit` as an `Option&lt;String&gt;`
  property; `peer_commit_to_string` converts the wire `[u8; 8]` to
  the displayable hex.
* `lan_mouse_gtk::run` now takes the local commit and stashes it in
  a `OnceLock` so per-row UI can compare against each peer's hash.
* `ClientRow::refresh_version_status` re-renders the collapsed
  subtitle with Pango markup whenever the property changes:
   - matched → green   "peer version: &lt;hex&gt; · matched"
   - mismatch → orange "peer version: &lt;hex&gt; · ours: &lt;hex&gt;"
   - unknown → orange  "peer version: unknown · ours: &lt;hex&gt;"
* Window invokes `refresh_version_status` from
  `update_client_state` after writing the new property, and
  `bind` calls it once on row construction so the initial
  subtitle isn't blank.

Known limitation: state-change broadcasts from the network side
(set_alive / set_active_addr / set_peer_commit) don't currently
trigger a `FrontendEvent::State` directly; the UI picks up the
latest values on the next user-driven broadcast. Same pre-existing
behavior as the alive/active_addr fields.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>chore: silence two pre-existing clippy lints</title>
<updated>2026-04-29T20:59:43Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-04-28T22:36:20Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=f252567ef9b2f083377876ae4b027697610e5b57'/>
<id>urn:sha1:f252567ef9b2f083377876ae4b027697610e5b57</id>
<content type='text'>
- macos_privacy.rs: drop the redundant inner #![cfg(target_os
  = "macos")]; lib.rs already gates the mod declaration with
  #[cfg(target_os = "macos")] (clippy::duplicated_attributes).
- macos_status_item.rs: inline status_item into the format
  string (clippy::uninlined_format_args).

No behavior change. Brings `cargo clippy --workspace
--all-targets --all-features -- -D warnings` back to clean.
</content>
</entry>
<entry>
<title>macos: re-present window on app re-launch</title>
<updated>2026-04-29T20:59:43Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-04-28T22:34:45Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=53c668b355983479c97a8da753f95f65bf83d69d'/>
<id>urn:sha1:53c668b355983479c97a8da753f95f65bf83d69d</id>
<content type='text'>
Closing the menubar window hides it; re-launching Lan Mouse.app
via Finder, `open`, or the Dock should bring the window back —
but it didn't, because the kAEReopenApplication Apple Event was
silently dropped. NSApp's default 'aevt'/'rapp' handler funnels
the event into applicationShouldHandleReopen:hasVisibleWindows:,
and GtkApplication owns NSApp's delegate without implementing
that selector.

Register the existing status-item delegate as a direct handler
for 'aevt'/'rapp' via NSAppleEventManager. setEventHandler:
replaces NSApplication's default, so we receive the event in
our code and re-present the window plus call
activateIgnoringOtherApps:. Extract a present_window() helper
so the menubar's "Open Lan Mouse" item and the new re-open
handler share one code path.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>style: apply cargo fmt</title>
<updated>2026-04-29T20:59:43Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-04-28T22:34:24Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=e5862e10e3d8dc9ca1bdcd2fff6456563c4d3183'/>
<id>urn:sha1:e5862e10e3d8dc9ca1bdcd2fff6456563c4d3183</id>
<content type='text'>
No behavior changes. Brings three files back in line with the
project's `style_edition = "2024"` rustfmt config so subsequent
edits don't carry unrelated formatting in their diffs.
</content>
</entry>
</feed>
