<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lan-mouse/input-emulation/src/wlroots.rs, branch main</title>
<subtitle>a fork</subtitle>
<id>https://git.nsrddyn.com/lan-mouse/atom/input-emulation/src/wlroots.rs?h=main</id>
<link rel='self' href='https://git.nsrddyn.com/lan-mouse/atom/input-emulation/src/wlroots.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>fix(wlroots): use local timestamps for emulated events</title>
<updated>2026-10-25T14:07:59Z</updated>
<author>
<name>Nietto</name>
<email>denisnietto@yahoo.com.br</email>
</author>
<published>2026-10-12T15:44:59Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=69958c625163649b69e27d0a6fb5a3edd596a467'/>
<id>urn:sha1:69958c625163649b69e27d0a6fb5a3edd596a467</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(wlroots): tag continuous scroll with AxisSource::Continuous (#509)</title>
<updated>2026-09-26T11:33:58Z</updated>
<author>
<name>Adam Cogdell</name>
<email>17283933+BlaziusMaximus@users.noreply.github.com</email>
</author>
<published>2026-09-26T11:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=f1b96bdcc0294d285bc9050b7e146800a3ef8796'/>
<id>urn:sha1:f1b96bdcc0294d285bc9050b7e146800a3ef8796</id>
<content type='text'>
The continuous `PointerEvent::Axis` path sent `axis` + `frame` with no
`axis_source` request, while the discrete path already sends
`AxisSource::Wheel`. zwlr_virtual_pointer_v1 defines no default source,
but wlroots zeroes each axis event after every frame and only sets
`source` from an `axis_source` request, so an unlabelled frame reaches
the compositor as source 0 = WL_POINTER_AXIS_SOURCE_WHEEL. Touchpad
scrolling was therefore treated as wheel input (discrete synthesis,
step quantisation), which makes smooth scrolling stutter.

`axis_source` must follow `axis()`: wlroots applies it to the most
recently used axis.

Fixes #502

Co-authored-by: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;</content>
</entry>
<entry>
<title>fix(wlroots): share one virtual keyboard across clients (#491)</title>
<updated>2026-09-18T21:43:50Z</updated>
<author>
<name>Florian S. Kluge</name>
<email>57475226+0xFlo@users.noreply.github.com</email>
</author>
<published>2026-09-18T21:43:50Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=17d64caf3706bbad26dc01078be4b3b5b91f0408'/>
<id>urn:sha1:17d64caf3706bbad26dc01078be4b3b5b91f0408</id>
<content type='text'>
* fix(wlroots): share one virtual keyboard across clients

add_client sent a keymap fd per emulation client, and it is the same fd every
time, so under client churn the queue grew past MAX_FDS_OUT and sendmsg failed
with ETOOMANYREFS. One lazily created keyboard sends it once. The pointer stays
per client because it carries no descriptor.

* test(wlroots): add a descriptor churn reproduction

Creates N emulation clients while sampling open descriptors, with a control
mode that holds the client count at one to distinguish client creation from
the event path. Motion is always zero valued so it never moves the cursor.</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>Partially Revert "slow scrolling chrome with emulation=wlroots capture=layer-shell (#318) (#325)" (#334)</title>
<updated>2025-10-27T14:56:30Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2025-10-27T14:56:30Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=4e5a66340a224910e56bf49bc11d2ad804dc6773'/>
<id>urn:sha1:4e5a66340a224910e56bf49bc11d2ad804dc6773</id>
<content type='text'>
The division by 120 was correct.</content>
</entry>
<entry>
<title>slow scrolling chrome with emulation=wlroots capture=layer-shell (#318) (#325)</title>
<updated>2025-10-08T22:28:26Z</updated>
<author>
<name>Thomas Matthijs</name>
<email>selckin@selckin.be</email>
</author>
<published>2025-10-08T22:28:26Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=39b79d88a5b05fd357d6397e795ed518d459309a'/>
<id>urn:sha1:39b79d88a5b05fd357d6397e795ed518d459309a</id>
<content type='text'>
Using niri as compositor on both sides resulting in: emulation=wlroots capture=layer-shell

Mouse scrolling works fine in terminals, but only scrolls very small amount in google-chrome (in wayland mode)

Using 'wev' to show events, using the real mouse shows

[        15:      wl_pointer] axis_source: 0 (wheel)
[        15:      wl_pointer] axis_value120: axis: 0 (vertical), value120: 120
[        15:      wl_pointer] axis_relative_direction: axis: 0 (vertical), direction: 0
[        15:      wl_pointer] axis: time: 50410752; axis: 0 (vertical), value: 15.000000

Using the lan-mouse shows:

[        15:      wl_pointer] axis_source: 2 (continuous)
[        15:      wl_pointer] axis_value120: axis: 0 (vertical), value120: 1
[        15:      wl_pointer] axis_relative_direction: axis: 0 (vertical), direction: 0
[        15:      wl_pointer] axis: time: -1913142096; axis: 0 (vertical), value: 20.000000

Without axis_source, scrolling over (pinned) tabs also skips one tab.</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>Clippy changes</title>
<updated>2025-01-24T15:26:09Z</updated>
<author>
<name>VassiliDev</name>
<email>NickolaiVassiliev@gmail.com</email>
</author>
<published>2024-11-26T22:21:21Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=beb656e29f53cd22005716233e4581bfb4497bf0'/>
<id>urn:sha1:beb656e29f53cd22005716233e4581bfb4497bf0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Handle locks (Caps/Num/Scroll)</title>
<updated>2025-01-24T15:26:09Z</updated>
<author>
<name>VassiliDev</name>
<email>NickolaiVassiliev@gmail.com</email>
</author>
<published>2024-11-26T21:30:01Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=68d6d895106615ef9fd43a9de4454d705d573565'/>
<id>urn:sha1:68d6d895106615ef9fd43a9de4454d705d573565</id>
<content type='text'>
Assume server is authoritative re ModifiersEvent
</content>
</entry>
</feed>
